Quote: "the same as usual, load object, texture object, set object effect.
you also need to register the object with the system using object_add, object_setAutoUpdate, and the like.
"
This is what I did before the main loop
rem object
load effect \"Shaders/Surface/Object/Parallax Occlusion.fx\",2,0
Effect_Add(2)
Effect_SetDetailMapping(2,1)
load object \"Objects/house/house.dbo",2
Object_Add(2)
position object 2,0,100,0
Object_SetAutoUpDate(2,1)
and I did this inside the main loop:
Object_UpDate(2)
The object appears under the water and is completely black. Not only that the object appears to drag across the screen as the camera moves around.
Does it need a different effect? (I took the one from the palm tree)
Does it need to be textured manually? (I do have the textures in the folder)
Does it need to be an .x file? (I loaded a .dbo)
or Does it need additional AL functions to the object? (only did effect add, object add, Object setautoupdate and Object update
or maybe even do I need setautoupdate inside the loop?
please help!!
Check
1. Doesnt appear to be a .dbo/.x file problem
2. I added set object effect 2,2 and I see the texture now..
3. Still have a dragging problem so my new troubleshoot goes like this:
Does it need a different effect? (Still may be that but I dont think so)
or Does it need additional AL functions to the object?
or maybe even do I need setautoupdate inside the loop?(Thinking this might be it but I dont know)
- Infinity is Simplicity -