Okino Website Claims 3DS Exports Cameras

Started by AGP, January 08, 2009, 04:23:21 PM

Previous topic - Next topic

EgonOlsen

This is so annoying...i'll try if i can make something out of it when i find the time...

AGP

I don't suppose you've had any progress here, have you, Egon?

AGP

By the way, what are the camera settings for jPCT's cameras for field-of-view and lens millimeters?

EgonOlsen

The default fov is defined in Config.defaultCameraFOV and it's 1.25. I don't know anything about lens mms. I never understood why on earth people think of mm and lenses when rendering to a screen...  ???

And no, there hasn't been any progress. I'm stuck here. I've no idea where to get the needed values nor to i know what some values mean that i'm getting. I can't find any information about it. The camera related code in the loader has been commented out for now, because it only loads half as much as it should to be useful.

AGP

#49
What about supporting DXF, which stores lights and cameras, or at least Lightwave's (.lwo/lws), or OpenGL (.c) (though DXF is better because EVERYTHING exports DXF)? Pretty please? I need to be able to transfer my camera perfectly.

EDIT:
Here's a link to the DXF file description: http://www.martinreddy.net/gfx/3d/DXF12.spec

And this is a different 3DS page (probably more helpful than the first link I sent you: http://www.martinreddy.net/gfx/3d/3DS.spec

EgonOlsen

I already know these specs...there aren't helpful either. Before including another obscure file format with other problems, i would rather fix the existing ones. Can't OBJ hold these damn camera information? Have i asked that before...( i guess so...)?

AGP

You have and I said "the only jPCT-supported format that stores cameras is 3DS." One more format wouldn't hurt the engine, I assure you. Hey, one of the things I love about jPCT is that it's so intuitive. I want it to stay that way. But adding a file format wouldn't make the Loader class (itself pretty self-explanatory) clobbered.

EgonOlsen

Are you sure? I dimly remember something like camera information in an OBJ-file that i saw once...i just can't remember which one it was!

No, adding another file format wouldn't make the Loader clobbered...but it takes time to implement it (which i don't have ATM) and there are only two options:

a) the format is easy to grasp at first glance (like OBJ) but comes in a gazillion of absurd variants
b) the format is like 3DS...an undocument, binary mess

Neither is fun. Or to put in other words: Writing loaders stinks!

BTW: jPCT doesn't prevent anyone from writing his/her own loader...it can always be added to the Loader class later... ;)



AGP

OK, I could try one. I did, 10 years or so ago, write an OBJ one myself, but you're a better programmer than me. But how would I go about doing it? object = new Object3D(maxNumberOfTriangles) then object.addTriangle(SimpleVector, SimpleVector, SimpleVector)?

EgonOlsen

Yes. If it finally works and makes its way into Loader, i can use some internal shortcuts that may help with performance, but afterall, most Loaders do exactly that (i.e. new Object3D()/addTriangle()).

C3R14L.K1L4

Egon, how is it going? Solved the 3DS problem?
I've checked wavefront's specs and theres no camera information tag :-\

EgonOlsen

Quote from: C3R14L.K1L4 on April 22, 2009, 04:56:49 PM
Egon, how is it going? Solved the 3DS problem?
Not by me. I've no idea what to make out of the data that i read from the 3ds file.