At 1:37 AM +0000 3/18/06, Gary Chinga wrote:

Can anyone advise how to use the Trimesh class as detailed in the Language Reference? I have copied the two portions of code directly from the LR into the open event of an RB3Dspace control - and I never see anything.

Your camera probably isn't positioned correctly. This is a common problem when working in 3D; a great model does you no good if you're not looking at it.

I've tried it exactly as it is in the LR, I've tried adjusting camera.orientation, FieldOfView and so on to see if I could catch the object - but I still don't see anything at all.

Did you adjust the camera position too? If not, your camera and object are probably both at the origin, so there's no way you'd be able to see it. Try setting camera.position.Z = -100, and then play with the orientation (turning on the DebugCube helps keep you from getting lost). Also be sure to set RenderBackfaces=true on your object, so that you don't have to worry about it facing away from you.

I can load 3DMF's from disk fine and manipulate those and I can generate 3DMF's from a string and that's fine too - but it seems like it should be miles easier and more flexible to use the trimesh class.

Absolutely. Start with a project where you're successfully viewing a 3DMF, and then make sure your TriMesh is in the same place (and approximately the same size).

I've seen reference to a "Trimesh Explorer" demo, but it doesn't seem to be in the sample projects from http://www.realbasic.com/download/windows/ - any info on this would be appreciated.

Hmm, I'm not sure why it wouldn't be with the examples.  I'll send you my copy.

Best,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to