Having mesh optimization in core

Discussion related to the implementation of new features & algorithms to the Core Engine.

Moderators: jromang, tomb, zcott, coordinators

Re: Having mesh optimization in core

Postby rendermagic » Tue Apr 19, 2011 8:26 pm

Lord,

Please modify the following files for me since I don't have commit access. If you can provide me with a luxconsole.exe build in win32 and win64 binaries, I can test on my Windows machines. Presently, I have only test on Linux.

  1. (paramset.cpp) Insert after line 719

    Code: Select all

          if (s == "center_stl_000")
             AddBool(s, (bool*)(params[i]));

  2. (stlmesh.cpp) Insert after line 48

    Code: Select all


       bool bCenterStl000 = params.FindOneBool("center_stl_000", false);

  3. (stlmesh.cpp) Insert after line 221

    Code: Select all

       if (bCenterStl000)

I will revise the wiki page on the scene file after the commit. Basically, the param in the scene file will be a boolean for the attribute 'center_stl_000'. True will center the STL mesh and a false will not.
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic
Developer
 
Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

Re: Having mesh optimization in core

Postby Rom1 » Wed Apr 27, 2011 2:04 pm

Thanks, that was exactly what I'm looking for !

trying to find my mesh 3 meter away ...
Rom1
Developer
 
Posts: 100
Joined: Thu Feb 04, 2010 7:18 am

Re: Having mesh optimization in core

Postby rendermagic » Wed Apr 27, 2011 2:25 pm

Rom1 wrote:Thanks, that was exactly what I'm looking for !

trying to find my mesh 3 meter away ...


Excellent...glad you enjoy the enhancement :)

I also have another enhancement I was thinking about providing: auto scaling for STLs. But, I have no idea if anyone would be interested in it.

I haven't tested on Windows or OSX. It should work though. If you can commit the auto centering feature to the repo, I can test the next time a Windows build is generated. I haven't yet tackled compiling on Windows...I've only compiled on Linux.
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic
Developer
 
Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

Re: Having mesh optimization in core

Postby Lord Crc » Wed Apr 27, 2011 10:50 pm

Sorry for the delay, been really busy lately. I'll make the mods tomorrow.
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: Having mesh optimization in core

Postby rendermagic » Thu Apr 28, 2011 2:04 am

Lord Crc wrote:Sorry for the delay, been really busy lately. I'll make the mods tomorrow.


Okay, no problem.
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic
Developer
 
Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

Re: Having mesh optimization in core

Postby Lord Crc » Thu Apr 28, 2011 4:24 pm

Ok pushed the changes. I changed the name of the parameter to "recenter_mesh", as we might want to use it for ply files and similar as well. Hope this is ok, if not we can discuss a better one :)

Again, sorry for the delay :(
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: Having mesh optimization in core

Postby rendermagic » Thu Apr 28, 2011 11:01 pm

Lord Crc wrote:Ok pushed the changes. I changed the name of the parameter to "recenter_mesh", as we might want to use it for ply files and similar as well. Hope this is ok, if not we can discuss a better one :)

Again, sorry for the delay :(


No worries...I like the name you have chosen. Good thinking!
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic
Developer
 
Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

Previous

Return to Architecture & Design

Who is online

Users browsing this forum: No registered users and 0 guests