Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Pages: 1 2 [3]

Author Topic: An8Render  (Read 32661 times)

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: An8Render
« Reply #30 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

------------------------------------------------------------------------------------------------------------------------------------
Logged

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1482
    • View Profile
Re: An8Render
« Reply #31 on: December 22, 2015, 04:31:03 pm »

Works fine for me! Tried the material properties. Morph and skeletal animations were smooth. Rotoslider is an interesting idea, though I wonder if it's overkill for adjusting numerical values.

Win10 Home 64-bit
Geforce GTX 980m, OpenGL 4.5
Logged

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: An8Render
« Reply #32 on: December 22, 2015, 08:03:30 pm »

Raxx 

Glad to know it works on Nvidia and win10.

The UI was chosen to be able to change parameters on the
run.You're right it's an overkill, but it's fun and it's
only a test program.

The poor woman was a blob for 2 weeks.That's what happens
if you miss 1 1evel of transform.
The only thing you could sometime identify was
the Anim8or logo on the tshirt.

When you get back working on your 3D viewer,I hope
I'll be in a better position to help if needed.

Claude
Logged

captaindrewi

  • Sr. Member
  • ****
  • Posts: 490
  • errm...errr?
    • View Profile
Re: An8Render
« Reply #33 on: December 22, 2015, 09:46:35 pm »

Everything seems to be working ok
slight difference in the animations i feel. within anim8or the walk is slightly less zombie like but this may just a quixotic perception....Is that likely?
also when i press resume (5) the animation tries to resume and then comes to a halt. Starts ok again if i press 1.


Vendor: ati technologies inc
Renderer: amd radeon hd 6520g
version: 4.4.13283 compatibility profile context 14.501.1003.0

win7 build 7601
Logged
!

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: An8Render
« Reply #34 on: December 22, 2015, 11:11:45 pm »

captaindrewi

Happy to see that it works well on ATI card.I'm always
concerned of possible differences between ATI and Nvidia  GLSL
compiler.
The program renders in real time.By default,Anim8or renders
per frame as fast as possible.Could you see if you have
View/Preference/Limit playback checked. If not,please check
it and see if you see a difference.

Thanks
Claude
Logged

captaindrewi

  • Sr. Member
  • ****
  • Posts: 490
  • errm...errr?
    • View Profile
Re: An8Render
« Reply #35 on: December 23, 2015, 05:33:31 am »

Yeah i did have limit playback checked.
Logged
!

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: An8Render
« Reply #36 on: January 06, 2016, 05:31:33 pm »

captaindrewi
Could you please run the app.Run the animation(key 1) once or twice.Close the app and post the debug file.
Thanks
Claude
« Last Edit: January 06, 2016, 08:31:03 pm by Claude »
Logged

captaindrewi

  • Sr. Member
  • ****
  • Posts: 490
  • errm...errr?
    • View Profile
Re: An8Render
« Reply #37 on: January 06, 2016, 08:05:53 pm »

ran .bat  and pressed button 1 couple of times.
Logged
!

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: An8Render
« Reply #38 on: January 07, 2016, 08:16:54 pm »

captaindrewi
 When you ran the app ,were you in full screen?
How much system memory do you have on your laptop?

Are you a gamer? ;) Your vsynch is off.Could you
try again with vsynch enable and let me know
if you still see a problem.

Thanks
Claude
« Last Edit: January 08, 2016, 10:07:23 am by Claude »
Logged

captaindrewi

  • Sr. Member
  • ****
  • Posts: 490
  • errm...errr?
    • View Profile
Re: An8Render
« Reply #39 on: January 08, 2016, 05:11:42 am »

Claude...i am not a gamer.i dont know if my vsync is on or off.don't know how to turn it on or off.
system memory see .jpg. was not in full screen last time i ran the app.
ran it again but this time in full screen and have attached the resultant debug file.


Logged
!
Pages: 1 2 [3]