Hi
After a few year pause, I'm starting to code again.
I'm learning Opengl 3.0 and 4.0.
Started by adding a function to An8lib to extract mesh data
in a form compatible with Opengl indexed VBO.
Wrote some Classes to render object using this data.
Now it supports:- diffuse,specular material and specular power
- ambient,diffuse and specular factor
- diffuse texture
- ambient color = diffuse color(mat and tex)
- specular color = diffuse color(tex)
- 1 material / mesh
- 3 types of An8 lights.
Obviously ,I wrote a test program for these Classes and it
would be nice if a few of you guys would try it.
There's a few things, I find interresting to check:
- small UI I've added allowing to change material properties on the run for debugging purpose.
- the rotoslider as a way to adjust UI input values.
- when rotating the camera,the specular effect of the
spotlight on the front face of the cube makes it looks
like there's a hole in it.
To try the program,you need a video card supporting
OpenGl 3.3.To check your video card support,start Anim8or
and go to menu About/OpenGl Info.Please note the first 3 lines
if the OpenGl version is equal or higher than 3.3.
Run the program and let me know if it works or not.
Please also post OS and the OpenGl Info.
This will allow me to know if the program works well
compiled with static runtime library and using different videocard and OS.
Thanks for your help.
Claude
P.S.
A few more info:
Click on the ? at the bottom left corner of the window for
help with the rotoslider.
Use the keyboard arrows to rotate the camera around the
object.
There's 2 objects.The first one is made of 2 primitives.
The second one is the apollo-soyuz assembly and was added to show texture rendering.You can change model in the General UI.
Source of the apollo_soyuz_carbajal 3D model: NASA.
You can see the light setup in the An8 file.