FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Problem after update to 1.3.3

5 posters

Go down

Problem after update to 1.3.3 Empty Problem after update to 1.3.3

Post  iphoniac Tue Feb 24, 2009 10:06 am

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:
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.

iphoniac

Posts : 62
Join date : 2008-12-11

http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  meteors Tue Feb 24, 2009 10:12 am

Did you try using the updated exporter script?


-j
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  iphoniac Tue Feb 24, 2009 10:59 am

I´m using the script from the 1.3.3 zip file.

iphoniac

Posts : 62
Join date : 2008-12-11

http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  sio2interactive Tue Feb 24, 2009 3:44 pm

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.
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  enzofrancesca Wed Feb 25, 2009 1:06 am

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.

enzofrancesca

Posts : 3
Join date : 2009-02-18
Age : 48
Location : Modena, Italy

http://www.bitmetrics.it

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  iphoniac Wed Feb 25, 2009 1:15 am

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 );

iphoniac

Posts : 62
Join date : 2008-12-11

http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  iphoniac Thu Feb 26, 2009 9:49 am

I´m stuck. Any idea?

iphoniac

Posts : 62
Join date : 2008-12-11

http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  sio2interactive Thu Feb 26, 2009 2:34 pm

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...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  hazeleye Tue Mar 03, 2009 2:42 am

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 Crying or Very sad Crying or Very sad
cube always placed in front of camera

What the problem can be in here ?

hazeleye

Posts : 34
Join date : 2008-09-24

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  iphoniac Tue Mar 03, 2009 5:04 am

I still don´t know what happens and I don´t have time for research, so I´ve kept sio2 1.3.1

iphoniac

Posts : 62
Join date : 2008-12-11

http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  hazeleye Tue Mar 03, 2009 10:37 pm

mmmm..... where can I find sio2 1.3.1 ?...

hazeleye

Posts : 34
Join date : 2008-09-24

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  sio2interactive Tue Mar 03, 2009 11:31 pm

sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  hazeleye Wed Mar 04, 2009 12:05 am

thanks

hazeleye

Posts : 34
Join date : 2008-09-24

Back to top Go down

Problem after update to 1.3.3 Empty Re: Problem after update to 1.3.3

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum