blender export problem ...

Problems building or running the engine, queries about how to use features etc.
Zoldan
Gnoblar
Posts: 9
Joined: Wed Dec 22, 2004 4:14 am

blender export problem ...

Post by Zoldan »

Hey,

i just tried to use blender export script (cvs version) to export a simple cube uv mapped with a texture ... it exported without problems but i cant see anything if i load the mesh ...
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

How do you load it? Are there any useful informations in you Ogre.log? Can you see it in the MeshViewer? Please be more specific. :)
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
AnimalMachine
Gnoblar
Posts: 19
Joined: Sun Jan 19, 2003 4:36 pm
Location: Milwaukee, WI USA

Post by AnimalMachine »

I just went through this exercise recently. Here's what I did:

1) Create a simple mesh in blender.
2) Create the UV's and slapped in one of those test textures to show how the organization of the UV's look on the model. (ranbow colors for columns, letters signifying the rows/cells)
3) Used the blender exporter.
4) Used the XMLConverter. (I did this on 0.15.1)
5) Copied the SkeletonAnimation sample and modified it removing the animaton related code, and subbed the name of my mesh in for robot.mesh.

Once I got that running, I still couldn't see my model. The problem is that I just made something simple that was only about 2 units in height ... which if you don't scale it is freakin tiny and too far away from the camera in the SkeletonAnimation example. I just happened to find it by luck really.

So ... what you should think about:

* How big is your mesh? Do you need to scale it on export? (I think I seen that option)
* How far away is your camera? Is it too close, or too far?
* Is your camera pointing toward the object at the start?
* Do you have ambient light setup?
* Do you have any other light sources near the objects?

I still don't have much Ogre experience under my belt, so those are the only things I can think of ... assuming your mesh really is loading correctly.
Zoldan
Gnoblar
Posts: 9
Joined: Wed Dec 22, 2004 4:14 am

Post by Zoldan »

no i wasnt able to see it in the meshviewer ... but i solved the problem now, i tried to load the mesh into another app and i saw a very little black cube ... so i scaled it a bit bigger and there was a huge big cube ... but without textures so i tried to load the bigger cube into the meshviewer and there it was with textures ... so i think some lights will do it then in my apps as well ...