General Category > General Anim8or Forum
An8Render
Claude:
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.
captaindrewi:
Crashes whilst loading - windows 7
vendor - ati tech inc
renderer - amd radeon 9tm)hd 6520g compatibility profile context
version - 4.1.110627 compatibility profile context
Raxx:
Hey Claude, interesting start so far. It runs well on my computer, but it crashes whenever I try changing the model number.
Vendor: NVIDIA Corporation
Renderer: GEForce GTX 780/PCIe/SSE2
Version: 4.4.0
[edit]-Windows 7 Ultimate x64
Claude:
Sorry guys for the delay.I was trying to find a way to redirect the
console output to a file.
Could you please run the app by double clicking the batch file
An8RenderRun.
After the app is closed, a file named "debug" should have been created.
Please post it.
Raxx
Is your OS WIN7 ?
Is the camera moving ?
Can you change the material properties ?
Do you see the specular effects ?
Do the rotosliders work correctly ?
If you have time,could you swap the An8 file name and rerun the app.
Use the right click rename function.
Post the "debug" file.
Thanks.
Claude
Raxx:
Win 7 Ultimate x64
The camera moves when I use the arrow keys.
I can change the material properties.
The specular effects work, though it seems that the values representing SpecularPower are in reverse (0 is max, 32 is none)
The rotosliders appear to work properly.
Changing the Model Number still causes a crash, and it doesn't seem to be caught in the debug log. The program also crashes on startup if I swap the two an8 file names. I tried using my own anim8or files with the same file names, but those also crashed.
Attached is the debug log and an image of what it looks like when it works.
Navigation
[0] Message Index
[#] Next page
Go to full version