Anybody here who coded a q3 *.bsp-viewer?

Started by
3 comments, last by XBTC 23 years, 10 months ago
I have a little question concerning q3´s *.bsp-Files. How are the different var-types stored in the File? I figured out,that an int is stored as four bytes,BUT(took me long ) in reversed order,which means that the last significant byte is stored first!! =>int x=byte0 + byte1* 2^8 + byte2 * 2^16 + byte3 * 2^32. But what about the floats? Or perhaps you know the c or c++ function carmack used to store the vars? ´Cause with with fscanf or fread I got wrong results so far. Thanx in advance,XBTC!
Advertisement
I''d like to see some DirectX source on this too.
Preferably easy to read OOP stuff

MCSE, MCSD, Sun Certified Java Programmer
Pimp Daddy ;)
MCSE, MCSD, Sun Certified Java ProgrammerPimp Daddy ;)
Here you are:
http://talika.fie.us.es/~titan/
Thanx!
1.Titan uses OpenGl.
2.I solved my problems,so don´t waste your time helping me.

P.s.:If someone codes on such a project please let me knows anyway.
And ryoder:Nearly all q3viewer you´ll find use OpenGl,cause as carmack knows Micro$oft is the foe of every good programmer and coding style.And: Yes,I like OpenGl´s procedural interface.
//I just couldn´t keep silence,sorry please DON´T!!!! start a boring flame-war about this one.
The real reason is that carmack designed Q3 for use with OpenGl and therefore it should be a little easier to display the *.bsp files with OpenGl.

Greets,XBTC!

Edited by - XBTC on June 9, 2000 7:27:22 AM
I think OpenGL was in a better position at the time that Carmack decided to commit to using it.

Now he doesn''t have any choice because of his investment in it.

I already have Titan and another viewer that I am looking at.

If anyone gets one running in D3D with a good oop interface then I would be interested in looking at it.

I bet more than a few people would.



MCSE, MCSD, Sun Certified Java Programmer
Pimp Daddy ;)
MCSE, MCSD, Sun Certified Java ProgrammerPimp Daddy ;)

This topic is closed to new replies.

Advertisement