Problem after update to 1.3.3
5 posters
Problem after update to 1.3.3
Hi. I´ve just updated my code to SIO2 and now the scene is black.
I´ve traced code and found that all my object´s dst value is 0 in rendering. The scene have not changed anything and I´ve compared my code with tutorial 6 and camera code is the same, I update frustrum, etc, etc, etc.
There´s no lights in scene, I´ve exported with 1.3.3 exporter and in blender objects are just in front of the camera.
This is my code:
Anything for the change from 1.3.1 to 1.3.3 I´ve missed of forgotten?
Cheers.
I´ve traced code and found that all my object´s dst value is 0 in rendering. The scene have not changed anything and I´ve compared my code with tutorial 6 and camera code is the same, I update frustrum, etc, etc, etc.
There´s no lights in scene, I´ve exported with 1.3.3 exporter and in blender objects are just in front of the camera.
This is my code:
- Code:
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
sio2WindowEnterLandscape3D();
{
sio2CameraUpdateListener( sio2->_SIO2camera );
sio2CameraRender( sio2->_SIO2camera );
if( tap_select )
{
.
.
.
}
if (selection) {
.
.
.
}
glClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT );
sio2CameraUpdateFrustum( sio2->_SIO2camera );
sio2ResourceCull( sio2->_SIO2resource,
sio2->_SIO2camera );
sio2ResourceRender( sio2->_SIO2resource,
sio2->_SIO2window,
sio2->_SIO2camera ,
SIO2_RENDER_SOLID_OBJECT | SIO2_RENDER_CLIPPED_OBJECT | SIO2_RENDER_ALPHA_OBJECT );
}
sio2WindowLeaveLandscape3D();
Anything for the change from 1.3.1 to 1.3.3 I´ve missed of forgotten?
Cheers.
Re: Problem after update to 1.3.3
Did you try using the updated exporter script?
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Problem after update to 1.3.3
hummm where are you calling sio2CameraSetPerspective? Cuz if the camera is exported properly that's the only function that would make the frustum test fail.
Re: Problem after update to 1.3.3
I've the same problem: the same code using 1.3.2 works perfectly, but using 1.3.3 shows only a black scene.
I'm going to investigate the problem today.
I'm going to investigate the problem today.
Re: Problem after update to 1.3.3
I call set perspective just after getting the camera resource:
- Code:
sio2->_SIO2camera = ( SIO2camera * )sio2ResourceGet( sio2->_SIO2resource,
SIO2_CAMERA,
"camera/IntroCamera" );
sio2CameraSetPerspective( sio2->_SIO2camera, sio2->_SIO2window );
Re: Problem after update to 1.3.3
Comment block by block and debug using one of the tutorial as template... then you can see what is different... or check the list of update in the sio2.h file, that might give you a hint...
Re: Problem after update to 1.3.3
Hello everybody
I have same problem too
I create scene with blender by default (scene with cube, camera and lamp)
Rendering it with sio2 engine (using tutorial 6)
All fine ! I see cube !!
But all my scene from old version of sio2 engine has camera with angle RotX = 0; RotY = 0; RotZ = 0; (it's property from blender)
I replace parameters for angle in scene with cube to its, export scene, render scene - and nothing seing
cube always placed in front of camera
What the problem can be in here ?
I have same problem too
I create scene with blender by default (scene with cube, camera and lamp)
Rendering it with sio2 engine (using tutorial 6)
All fine ! I see cube !!
But all my scene from old version of sio2 engine has camera with angle RotX = 0; RotY = 0; RotZ = 0; (it's property from blender)
I replace parameters for angle in scene with cube to its, export scene, render scene - and nothing seing
cube always placed in front of camera
What the problem can be in here ?
hazeleye- Posts : 34
Join date : 2008-09-24
Re: Problem after update to 1.3.3
I still don´t know what happens and I don´t have time for research, so I´ve kept sio2 1.3.1
Re: Problem after update to 1.3.3
mmmm..... where can I find sio2 1.3.1 ?...
hazeleye- Posts : 34
Join date : 2008-09-24
Similar topics
» update animated physic shape
» How to set a relative parent-child relationship?
» Update from 1.3.3 to 1.3.5 bug
» Latest SVN Update
» Congratulating the 1.3.1 version
» How to set a relative parent-child relationship?
» Update from 1.3.3 to 1.3.5 bug
» Latest SVN Update
» Congratulating the 1.3.1 version
Permissions in this forum:
You cannot reply to topics in this forum