[Blend2cs-user] Re: [Cel-main] Loading mesh from Blender in CS via cel

Thomas Degris thomas.degris at lip6.fr
Wed Nov 3 13:01:11 CET 2004


Hello,

thanks for you answer.

>>> 2) I don't understand how objects are rotated in the world. Two 
>>> objects orientated with the same angles in Blender will NOT 
>>> necessarily be orientated the same way once loaded in cel. On the 
>>> contrary, two objects not orientated the same way in Blender may be 
>>> orientated identically in cel. It seems that it depends how objects 
>>> are initially created in Blender, but I am not sure. Also, 
>>> modifications in Blender does not seem to be taken into account in 
>>> CEL. I am really looking for some informations about that. 
>>
>>
>> I don't understand this. What do you mean by 'modifications in 
>> Blender'? What kind
>> of modifications?
>
> This also sounds strange to me, do you have an example file?

You can download the following file: 
http://www-poleia.lip6.fr/~degris/blender/boxExample.blend. You will see 
two different boxes orientated differently in Blender. They appear to be 
similar when they are loaded in CEL.

> If the objects are static and won't move then you want to use thing 
> meshes (default in blend2cs) and use -relight on the level. For moving 
> objects you better use genmeshes which are vertex lighted and get 
> updated as the object moves.
>
I added the property 'type' with 'genmesh' as value and now I get an 
assert when running in CS. Here is the following backtrace:
#0  csGenmeshMeshObject::SetupObject() (
   this=0x8243718)
   at plugins/mesh/genmesh/object/genmesh.cpp:649
#1  0x42b0f642 in csGenmeshMeshObject::DrawTest(iRenderView*, iMovable*, 
unsigned) (
   this=0x8243718, rview=0xbffff000,
   movable=0x8236aa8, frustum_mask=9)
   at plugins/mesh/genmesh/object/genmesh.cpp:658
#2  0x410684ee in csMeshWrapper::DrawIntFull(iRenderView*, unsigned) 
(this=0x82369b0,
   rview=0xbffff000, frustum_mask=9)
   at plugins/engine/3d/meshobj.cpp:678
#3  0x410683c8 in csMeshWrapper::DrawInt(iRenderView*, unsigned) 
(this=0x82369b0,
   rview=0xbffff000, frustum_mask=9)
   at plugins/engine/3d/meshobj.cpp:653
#4  0x41067f66 in csMeshWrapper::Draw(iRenderView*, unsigned) 
(this=0x82369b0,
   rview=0xbffff000, frustum_mask=9)
   at plugins/engine/3d/meshobj.cpp:513
#5  0x4109189d in csSector::Draw(iRenderView*)
   (this=0x8499f00, rview=0xbffff000)
   at plugins/engine/3d/sector.cpp:892
#6  0x41094c02 in csSector::eiSector::Draw(iRenderView*) 
(this=0x849a014, rview=0xbffff000)
   at sector.h:554
#7  0x410401d2 in csEngine::Draw(iCamera*, iClipper2D*) (this=0x8088178, 
c=0x819c0c0,
   view=0x8247d28)
   at plugins/engine/3d/engine.cpp:1904
#8  0x4265b546 in csView::Draw() (
   this=0x84aba88)
   at libs/cstool/csview.cpp:167
#9  0x4264d425 in celPcCamera::TickEveryFrame() (this=0x824c888)
   at plugins/propclass/engine/engfact.cpp:801
#10 0x4134a30b in celPlLayer::HandleEvent(iEvent&) (this=0x808d900, 
ev=@0x80eac58)
   at plugins/stdphyslayer/pl.cpp:117
#11 0x4135030b in celPlLayer::EventHandler::HandleEvent(iEvent&) 
(this=0x80f6ba8,
   ev=@0x80eac58) at pl.h:182
#12 0x40418808 in csEventQueue::Notify(unsigned) (this=0x80b6f88, 
pseudo_event=9)
   at libs/csutil/cseventq.cpp:219
#13 0x40418926 in csEventQueue::Process() (
   this=0x80b6f88)
   at libs/csutil/cseventq.cpp:235
#14 0x40440f55 in csDefaultRunLoop(iObjectRegistry*) (r=0x80baa68)
   at libs/csutil/generic/runloop.cpp:81
#15 0x40408095 in csApplicationFramework::Run() () at 
csapplicationframework.h:307
#16 0x40405079 in CrystalSpaceApplication::Application() (this=0x8051f90)
   at crystalspaceapplication.cpp:155
#17 0x404085c5 in csApplicationFramework::Start() ()
   at libs/cstool/csapplicationframework.cpp:68
#18 0x40408863 in csApplicationFramework::Main(int, char**) 
(this=0x8051f90, argc=2,
   argv=0xbffff594)
   at libs/cstool/csapplicationframework.cpp:115
#19 0x403f3f2d in CApplication::Main(int, void*, int) (this=0x80d99b8, 
argc=2,
   argvPtr=0xbffff594, argvSize=0)
   at capplication.cpp:53
#20 0x0804a5fb in LabySouris::Main(int, char**) (this=0x80bb060, argc=2, 
argv=0xbffff594)
   at labysouris.cpp:37
#21 0x0804d838 in main (argc=2,
   argv=0xbffff594) at main.cpp:24


Thanks,

Thomas



More information about the Blend2cs-user mailing list