About Store Forum Documentation Contact



Post Reply 
No light in the editor
Author Message
Nox_A15 Offline
Member

Post: #1
No light in the editor
Suddenly I can't see lights in the editor. After compilation they are there, but in editing mode they look like a cubes of "not detected objects". I have the same problem in freshly downloaded editor.

I'm working on my thesis project in Esenthel and need this problem solved really badly. :/

Edit:
Particles as well.
(This post was last modified: 02-04-2013 10:41 PM by Nox_A15.)
02-04-2013 10:36 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: No light in the editor
Hi,

Sorry for the inconvenience,

Since you have partial editor source code, please edit this code:

Code:
// set custom drawing for following object types
   World.setObjType<EditObjParticles >(Game::ObjType.find("OBJ_PARTICLES"  ));
   World.setObjType<EditObjLightPoint>(Game::ObjType.find("OBJ_LIGHT_POINT"));
   World.setObjType<EditObjLightCone >(Game::ObjType.find("OBJ_LIGHT_CONE" ));
   World.setObjType<EditAnimatable   >(Game::ObjType.find("OBJ_ANIMATABLE" ));

   // initialize the editor
   EditInit(StateEdit, &StateGame, &StateMiniMap);

and replace it with this one:

Code:
// initialize the editor
   EditInit(StateEdit, &StateGame, &StateMiniMap);

   // set custom drawing for following object types
   World.setObjType<EditObjParticles >(Game::ObjType.find("OBJ_PARTICLES"  ));
   World.setObjType<EditObjLightPoint>(Game::ObjType.find("OBJ_LIGHT_POINT"));
   World.setObjType<EditObjLightCone >(Game::ObjType.find("OBJ_LIGHT_CONE" ));
   World.setObjType<EditAnimatable   >(Game::ObjType.find("OBJ_ANIMATABLE" ));
02-04-2013 11:13 PM
Find all posts by this user Quote this message in a reply
Nox_A15 Offline
Member

Post: #3
RE: No light in the editor
Thank you, works like a charm. smile
02-04-2013 11:50 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: No light in the editor
I've just reuploaded Editor EXE files for last 1.0 SDK, it should be ok now
02-06-2013 04:44 PM
Find all posts by this user Quote this message in a reply
Post Reply