Search found 17 matches

by sunzhuo
Tue Mar 06, 2018 1:49 pm
Forum: Beginners Help
Topic: How can i let diffuse lighting work?
Replies: 12
Views: 1268

Re: How can i let diffuse lighting work?

Looks like the sum of all your lighting is already beyond full lighting. So basically in first step you have to get back to a situation where it's not full bright and then slowly turn the lights up. For example start with only 1 light - either dynamic or ambient and check how it's there. Reasons it...
by sunzhuo
Tue Mar 06, 2018 9:42 am
Forum: Beginners Help
Topic: How can i let diffuse lighting work?
Replies: 12
Views: 1268

Re: How can i let diffuse lighting work?

manni63 wrote:What happens, when you switch off both light sources, ambient and directional?
And how do you make the shadows?
When I switch off all the lights everything is dark.
I make the shadows by adding a scenenode:

Code: Select all

((scene::IAnimatedMeshSceneNode*)n)->addShadowVolumeSceneNode();
by sunzhuo
Tue Mar 06, 2018 1:09 am
Forum: Beginners Help
Topic: How can i let diffuse lighting work?
Replies: 12
Views: 1268

Re: How can i let diffuse lighting work?

The first thing: Which video driver do you use? It seems to me that the software driver as well as the burningsvideo driver seems not to support direct lighting. The second thing is a little bit tricky and it took me some time to understand this effect: With the coordinates of your light source (-1...
by sunzhuo
Mon Mar 05, 2018 12:51 pm
Forum: Beginners Help
Topic: How can i let diffuse lighting work?
Replies: 12
Views: 1268

Re: How can i let diffuse lighting work?

Diffuse illumination means that light comes from all space directions on your mesh object. So the brightness of a mesh is completely independent of normal directions. This is exactly the situation you show in your first image, so your diffuse illumination works pretty well. To get a brightness that...
by sunzhuo
Mon Mar 05, 2018 1:29 am
Forum: Beginners Help
Topic: How can i let diffuse lighting work?
Replies: 12
Views: 1268

Re: How can i let diffuse lighting work?

yes, of course. It shows shadow. Any suggestion?
by sunzhuo
Mon Mar 05, 2018 1:13 am
Forum: Beginners Help
Topic: How can i let diffuse lighting work?
Replies: 12
Views: 1268

Re: How can i let diffuse lighting work?

Mel wrote:Try to normalize the normals.

Code: Select all

 
n->getMaterial(0).normalizeNormals = true;
 
still not work
by sunzhuo
Sun Mar 04, 2018 4:59 pm
Forum: Beginners Help
Topic: How can i let diffuse lighting work?
Replies: 12
Views: 1268

How can i let diffuse lighting work?

I am using 1.7.2. I load a 3ds mesh to the scene and add a light (see below). It seems that the diffuse lighting does not work. https://preview.ibb.co/eaXznn/nodiffuse.png I want get the following effect which I got in the rhinoceros software: https://preview.ibb.co/eGON7n/diffuse.png I tried these ...
by sunzhuo
Fri Jan 09, 2009 4:58 am
Forum: Beginners Help
Topic: How can I add a parallel light?
Replies: 7
Views: 530

sorry, guys. I am not tending to bother you. But it is really difficult for a 3d beginners to precisely manipulate irrlicht. It will take you just a minute but few hours of me to solve a problem. I just want to integrate irrlicht into my spatial analysis framework MicroCity.
by sunzhuo
Thu Jan 08, 2009 3:17 pm
Forum: Beginners Help
Topic: How can I add a parallel light?
Replies: 7
Views: 530

How can I add a parallel light?

I found there is a type of light scenenode which can be used as a dynamic point light. But I want add a parallel light that is emitted from infinity. How can I do that?
by sunzhuo
Thu Jan 08, 2009 3:05 pm
Forum: Beginners Help
Topic: Can not draw a 3d line
Replies: 6
Views: 478

randomMesh wrote:
sunzhuo wrote:I call it before the loop.
That's wrong. You need to call it between

Code: Select all

driver->beginScene()
and

Code: Select all

driver->endScene()
I got it, thanks.
by sunzhuo
Thu Jan 08, 2009 2:29 pm
Forum: Beginners Help
Topic: Can not draw a 3d line
Replies: 6
Views: 478

how/when do you call it ??? it works for me this way: SMaterial m; m.Lighting = false; while(device->run()){ driver->beginScene(true, true, video::SColor(0,0,0,0)); smgr->drawAll(); guienv->drawAll(); driver->setMaterial(m); driver->setTransform(video::ETS_WORLD, core::matrix4()); driver->draw3DLin...
by sunzhuo
Thu Jan 08, 2009 1:52 pm
Forum: Beginners Help
Topic: Can not draw a 3d line
Replies: 6
Views: 478

Sylence wrote:Doesn't work means what ?
Is the line drawn wrong, or is it not drawn?
means not drawn, can not be seen, invisible
by sunzhuo
Thu Jan 08, 2009 1:39 pm
Forum: Beginners Help
Topic: Can not draw a 3d line
Replies: 6
Views: 478

Can not draw a 3d line

I am using 1.5. This issue made me crazy. I tested it in the helloword example. It doesn't work. see below: smgr->addCameraSceneNode(0, vector3df(0,30,-40), vector3df(0,5,0)); SMaterial m; m.Lighting = false; driver->setMaterial(m); driver->setTransform(video::ETS_WORLD, core::matrix4()); driver->dr...
by sunzhuo
Thu Dec 25, 2008 7:17 am
Forum: Bug reports
Topic: The default MAYA camera can't be repositioned
Replies: 4
Views: 2249

I just create a camera can simulate the MAYA camera. Hope these code can help someone that have the same confusion like me. class MyEventReceiver : public IEventReceiver { public: // This is the one method that we have to implement virtual bool OnEvent(const SEvent& event) { if (event.EventType ...
by sunzhuo
Wed Dec 24, 2008 5:24 pm
Forum: Beginners Help
Topic: Lose mouse response outside irrlicht window
Replies: 0
Views: 251

Lose mouse response outside irrlicht window

I embeded a irrlicht window in wxWidgets. It worked fine for most time. But sometime when I use mouse control the camera in irrlicht window, the mouse seems trapped by irrlicht window. The interface outside the irrlicht window does not respond on mouse click. Such as close, minimize, etc. At that ti...