H3D.org Forum Index Programming Issues
3D model reflecting light | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| adrian | Posted on: 2012/5/11 11:23 |
Quite a regular ![]() ![]() Joined: 2010/6/16 From: Constanta, Romania Posts: 31 |
3D model reflecting light Hy, I have a issue I can't seem to solve. I need that my 3D model to reflect light (i tried with all the lights available: point, spot, directional); the model is textured and the geometry is IndexedTriangleSet. I tried all the material settings, none seemed to work.
I did all these inside H3DViewer 2.1; and I got the same results inside my app (c++ project). I loaded my model inside H3DViewer 2.1.1 and it was way brighter. I tried to find the answer there, but I couldn't find the source-code for it. So, Is the source code for H3DViewer available ? Or, is there any method I can make my model brighter ? Thanks, Adi Later edit ( closer look ): the specularColor and the shininess attributes are responsible for reflecting light. On the H3DViewer v2.1 the change it barely observable (and therefore not enough for the effect I want to have). On the v2.1.1 it works just fine: the changes on these two attributes meet my requirements on how the model should look. |
| Markus | Posted on: 2012/5/15 9:56 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1902 |
Re: 3D model reflecting light In other words the issue is solved?
|
| adrian | Posted on: 2012/5/15 14:29 |
Quite a regular ![]() ![]() Joined: 2010/6/16 From: Constanta, Romania Posts: 31 |
Re: 3D model reflecting light No. My model looks just how I want inside the viewer v2.1.1, but it doesn't in v2.1.1 viewer and my app. But I don't know why;
So, my question is either "is the source-code for the v2.1.1 viewer available ?" or "why does the model look different in the 2 versions ?". Edit: Here's a part of my model loaded with both viewers. Same scene is loaded. As you can see, there is also a problem with texture on the 2.1.1 version. http://postimage.org/image/heca4kj2d/full |
| Markus | Posted on: 2012/5/15 15:36 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1902 |
Re: 3D model reflecting light Hello,
All source code are available. see http://www.h3dapi.org/modules/mediawi ... atest_development_version I have no idea why the models would look different. I guess the H3DAPI versions differ as well (check the dlls if you like, they have version info in them). Did you try with latest trunk as well? |
| adrian | Posted on: 2012/5/16 12:53 |
Quite a regular ![]() ![]() Joined: 2010/6/16 From: Constanta, Romania Posts: 31 |
Re: 3D model reflecting light i`m not using the latest trunk (i`m using v2.1.1, available online). Here, I have my internet ports blocked (security reasons), so svn doesn't work.
|
| Markus | Posted on: 2012/5/18 9:18 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1902 |
Re: 3D model reflecting light In the download section you can find source code for H3DViewer released versions. It is included both in the H3DAPI windows package as well as in the source only package.
|
| adrian | Posted on: 2012/5/18 16:18 |
Quite a regular ![]() ![]() Joined: 2010/6/16 From: Constanta, Romania Posts: 31 |
Re: 3D model reflecting light I checked for the lastest trunk; but, when compiling H3DAPI i get
error C2065: 'GL_DEPTH_COMPONENT32F' : undeclared identifier c:\H3D\H3DAPI\src\FrameBufferTextureGenerator.cpp 734 H3DAPI I couldn't solve it. I saw that a year ago you were asked about this issue, and you said it was because it was a development version. Did you solved it ? |
| Markus | Posted on: 2012/5/21 9:32 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1902 |
Re: 3D model reflecting light Are you using windows or linux?
If windows then download the latest external from the downloads section in order to compile trunk properly (especially on 64-bit). Also, could you direct to the old thread you found? |
| adrian | Posted on: 2012/5/22 7:59 |
Quite a regular ![]() ![]() Joined: 2010/6/16 From: Constanta, Romania Posts: 31 |
Re: 3D model reflecting light I`m using Windows.
Old thread: http://www.h3dapi.org/modules/newbb/v ... php?topic_id=1559&forum=3 I will try the latest external; be back with results. Done that. Error inside cmake: which is the lib for: GLUT_LIBRARY and GLUT_glut_LIBRARY ? glut32.lib is not in the lib folder. And, the lib for wxWidgets_popgrid_LIBRARY ? Both are mentioned NOTFOUND, and I have to set them, but I can't find either of them. |
| Markus | Posted on: 2012/5/22 9:17 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1902 |
Re: 3D model reflecting light Did you clear cache, and also made sure that there are no External/lib and External/bin directories?
The new external replaces the old one, completely. It works fine with trunk. |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |



