Author Topic: Using DX or OGL for 1k intro coding?  (Read 4423 times)

0 Members and 1 Guest are viewing this topic.

Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Using DX or OGL for 1k intro coding?
« on: June 22, 2007 »
Just a question about 1k intro coding... Do you prefer to use DX or OGL to get small 1k intros? Is there a big different to save some bytes? However, i have an 1k OGL framework.... but does someone have an 1k DX9 framework? ;) would be nice...
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline 0x4e71

  • ZX 81
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
Re: Using DX or OGL for 1k intro coding?
« Reply #1 on: June 22, 2007 »

hmmm, no experience with 1k (or 4k) frameworks, but...
here are some 1k frameworks, including a direct3d one, maybe you've seen'em already, but anyhow:

http://perso.orange.fr/franck.charlet/1K-D3D-SW-OGL-FrameWorks.zip

mvg

LG

Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: Using DX or OGL for 1k intro coding?
« Reply #2 on: June 22, 2007 »
ah thanks... seems DX let you create smaller executeables as OGL - as i thought ^^
is there somewhere an 1k DX framework around? ;)


- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Using DX or OGL for 1k intro coding?
« Reply #3 on: June 22, 2007 »
Well... it depends.
At 1k, if you use shaders then D3d will win for one really good reason, you don't need to import functions by hand like you do with OGL under windows. Also D3d offers asm for shaders.
No shaders ? Its really about 50/50. In fact you could use them together. I think I got them both running together in about 600 bytes once.

At 4k, d3d has a very slight edge but to be honest its lost in the noise compared to good coding. Also you can use all of DX with OGL (eg sound, maths etc) and its quite easy. I'd say d3dx is cool though and offers a lot OGL does not have (raytracing, subdivision surfaces etc).

Chris
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Using DX or OGL for 1k intro coding?
« Reply #4 on: June 22, 2007 »
...
is there somewhere an 1k DX framework around? ;)
Yes, I have made one sometime ago (VC++2005), never used it yet...

About OGL/DX9 executable size, hmmm...   what Chris said !
Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: Using DX or OGL for 1k intro coding?
« Reply #5 on: June 23, 2007 »
@taj: thanks

@rbraz: thanks a lot... btw, can you add a project file, because i cant compile nor create an exe with VC2005 atm.... i am trying to solve the prob
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Using DX or OGL for 1k intro coding?
« Reply #6 on: June 23, 2007 »
Ok, I have attached one packed executable for you to test.
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Using DX or OGL for 1k intro coding?
« Reply #7 on: June 26, 2007 »
d3dx utilities very useful, especially since they've made it a dll and not a static library, which is how it was originally supplied!  (with all the symbols global - yuck!)

Jim
Challenge Trophies Won: