Problem after update to 1.3.3

View previous topic View next topic Go down

Problem after update to 1.3.3

Post  iphoniac on Tue Feb 24, 2009 10:06 am

Hi. Ive just updated my code to SIO2 and now the scene is black.

Ive traced code and found that all my objects dst value is 0 in rendering. The scene have not changed anything and Ive compared my code with tutorial 6 and camera code is the same, I update frustrum, etc, etc, etc.

Theres no lights in scene, Ive 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 Ive missed of forgotten?

Cheers.

iphoniac

Posts : 62
Join date : 2008-12-11

View user profile http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Re: Problem after update to 1.3.3

Post  meteors on Tue Feb 24, 2009 10:12 am

Did you try using the updated exporter script?


-j
avatar
meteors

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

View user profile

Back to top Go down

Re: Problem after update to 1.3.3

Post  iphoniac on Tue Feb 24, 2009 10:59 am

Im using the script from the 1.3.3 zip file.

iphoniac

Posts : 62
Join date : 2008-12-11

View user profile http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Re: Problem after update to 1.3.3

Post  sio2interactive on 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.
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Problem after update to 1.3.3

Post  enzofrancesca on 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 : 42
Location : Modena, Italy

View user profile http://www.bitmetrics.it

Back to top Go down

Re: Problem after update to 1.3.3

Post  iphoniac on 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

View user profile http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Re: Problem after update to 1.3.3

Post  iphoniac on Thu Feb 26, 2009 9:49 am

Im stuck. Any idea?

iphoniac

Posts : 62
Join date : 2008-12-11

View user profile http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Re: Problem after update to 1.3.3

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

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Problem after update to 1.3.3

Post  hazeleye on 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

View user profile

Back to top Go down

Re: Problem after update to 1.3.3

Post  iphoniac on Tue Mar 03, 2009 5:04 am

I still dont know what happens and I dont have time for research, so Ive kept sio2 1.3.1

iphoniac

Posts : 62
Join date : 2008-12-11

View user profile http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Re: Problem after update to 1.3.3

Post  hazeleye on Tue Mar 03, 2009 10:37 pm

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

hazeleye

Posts : 34
Join date : 2008-09-24

View user profile

Back to top Go down

Re: Problem after update to 1.3.3

Post  sio2interactive on Tue Mar 03, 2009 11:31 pm

http://sio2.googlecode.com/files/SIO2_SDK_v1.3.1.zip

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Problem after update to 1.3.3

Post  hazeleye on Wed Mar 04, 2009 12:05 am

thanks

hazeleye

Posts : 34
Join date : 2008-09-24

View user profile

Back to top Go down

Re: Problem after update to 1.3.3

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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