71
« on: December 22, 2015, 04:02:21 pm »
Hi
It's been a very long pause, but since a few weeks, I've started working on An8Render lib again.I've worked only on adding figure animation.We're still far away from a release,but I couldn't resist showing progress made.
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.
- morph animation
- figure animation
It uses liban8 to load .an8 models.
Morph and figure animation rendering is done in real time,not per frame.
Interpolation is calculated exactly like it's shown in the
graph editor.One thing left is to deal with the morph normals.
Most of the data(vertex,tex coord,.......,weights and vertex index) is kept in VBO in the video card memory.A big part of the calculation is done on the video card as you can see in the shader files.
So,here's the test program I wrote for the lib and it
would be nice if a few of you guys would have a look at 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 by double clicking the batch file
An8RenderRun. Please let me know if it works or not,
and also post OS and the OpenGl Info.
After the app is closed, a file named "debug" should have been created.If the app doesn't work please post it.
This will allow me to know if the program works well
using different videocard and OS and get debug info.
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.
You can see the light setup in the An8 file.
The opening window will show the figure animation I would like
you to have a look at.It was made using makehuman and NickE's
BVH2Anim8or.It's a walking woman.Open the Female1_B02_StandToWalkExperience file in Anim8or to compare both animation
rendering.
MODEL 3
Numeric pad keyboard control(right side of the keyboard)
Sequence #1 1 2 3 4 5
Start BindPause Stop Pause Resume
If you want to have a look at the other 2 models,you can change model in the General UI.
The second one is the apollo-soyuz assembly and was added to show texture rendering at the time.
Source of the apollo_soyuz_carbajal 3D model: NASA.
MODEL 2
No key control
The first one is a sphere including 3 morphs to test the rendering code.
Sorry for the model.It will never win in a modeling contest, but for testing it was OK.
MODEL 1
General UI allows to change some parameters like Morph_LoopState and Morph_Duration,plus and operate manually by changing Morph_Time.
General UI:
MorphManualControl: click to allow manual morph adjustment
Morph_Time: change the morph time;use the rotoslider
Morph_LoopState: shows looping state
Morph_FlipLoopState: button to change looping state
Morph_Duration: set morph duration
RegisterMorph_Duration: then activate change;won't register
if morph not stopped
UI allows to change blue material properties on the run.
keyboard control
Morph #1 F1 F2 F3 F4
Morph #2 F5 F6 F7 F8
Morph #3 F9 F10 F11 F12
Start Stop Pause Resume
------------------------------------------------------------------------------------------------------------------------------------https://drive.google.com/file/d/0B84Q_4yIHaGAQUxaMDJ6alJXZjg/view?usp=sharing
------------------------------------------------------------------------------------------------------------------------------------