Baking - some fisrt thoughts

Rhino 3D (Export script developed by SamPage; Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Micha
Licensed Customer
Posts: 122
Joined: Sun May 30, 2010 4:49 pm
Location: Germany
Contact:

Hi,

today I tested the new baking feature. Nice to see baking at Rhino, now we have two engines with baking support. From AIR I know some additional functions like:

* bake all scene objects (to hdd)
* bake selected objects (to hdd)
* load baked texture (all/selected object) for Rhino display
* automatic ID

Also I miss that the camera options of the still image rendering is kept. Best would be to use baking without to destroy the current camera setup. I don't know how a scene with dozens of objects can be baked, if the user need to manual set the ID.

I suppose so this little functions are on the way or?

-Micha
http://www.simulacrum.de - Visualization for Designer and Architects
Win7 64 | Dual Xeon E5-2687W | 32GB RAM | 2 GTX 780 6GB | Rhino3D
User avatar
face_off
Octane Plugin Developer
Posts: 15717
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

In general, I would expect Baking to be used for things like game asset creation, so its not something which I would think would be a popular feature of the OctaneRender for Rhino plugin - so the workflow at the moment is quite simplistic.
* bake all scene objects (to hdd)
* bake selected objects (to hdd)
I think both of these could be addressed by allowing the assignment of Render Layer and Baking Group for multiple selected Live Update items. I'm not sure if this is possible or not, so I will need to investigate.
* load baked texture (all/selected object) for Rhino display
For this you currently you can save the baking camera render to the same filename used by your material, and then rightclick the Settings->Reload All Texturemaps. In theory this could be automated, but it would be difficult, since the plugin would need to make some assumptions about which texturemaps need to be set to the baking map and with a complex material node structure this might not be possible. Take for example the situation where you have 2 Image nodes into a mix node into the Diffuse pin of a material - which of the Image nodes would the plugin replace with the baking texturemap?
* automatic ID
Not sure what you mean by this. You set the ID yourself at the moment.
Also I miss that the camera options of the still image rendering is kept. Best would be to use baking without to destroy the current camera setup. I don't know how a scene with dozens of objects can be baked, if the user need to manual set the ID.
Yes, at the moment you loose your thin lens settings when changing from thinlens to baking and back to thinlens. So use the Export Rendertarget Settings and Import Rendertarget Settings, or add a Rhino View for you thin lens camera, and save the Rendertarget to that View, then switch to the normal Perspective View to do your baking.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
Micha
Licensed Customer
Posts: 122
Joined: Sun May 30, 2010 4:49 pm
Location: Germany
Contact:

face_off wrote:In general, I would expect Baking to be used for things like game asset creation, so its not something which I would think would be a popular feature of the OctaneRender for Rhino plugin - so the workflow at the moment is quite simplistic.
If baking would be easy than people could use it to create good looking 3D PDF. For example the Simlab Composer supports baking for 3D PDF, but not so nice fully GI. Per Octane + the SImlab PDF plugin high end 3D PDF scenes could be created.

I created some 3D PDF per Rhino|AIR|Simlab and AIR baking in the past. Here some example:
http://www.simulacrum.de/download/3D_PDF/House3.pdf
http://www.simulacrum.de/download/3D_PD ... rmouse.pdf
http://www.simulacrum.de/download/3D_PD ... lebox2.pdf
face_off wrote:
* load baked texture (all/selected object) for Rhino display
For this you currently you can save the baking camera render to the same filename used by your material, and then rightclick the Settings->Reload All Texturemaps. In theory this could be automated, but it would be difficult, since the plugin would need to make some assumptions about which texturemaps need to be set to the baking map and with a complex material node structure this might not be possible. Take for example the situation where you have 2 Image nodes into a mix node into the Diffuse pin of a material - which of the Image nodes would the plugin replace with the baking texturemap?
Best the baked map would loaded to a simple Rhino material and the original Octane material disconnected. Maybe we get a better solution, best a solution that allow to switch between baked and original material. OK, this would need some coding effort.
face_off wrote:
* automatic ID
Not sure what you mean by this. You set the ID yourself at the moment.
That's what I mean, each object should get an own ID per automatic. AIR doe's it.
face_off wrote:
Also I miss that the camera options of the still image rendering is kept. Best would be to use baking without to destroy the current camera setup. I don't know how a scene with dozens of objects can be baked, if the user need to manual set the ID.
Yes, at the moment you loose your thin lens settings when changing from thinlens to baking and back to thinlens. So use the Export Rendertarget Settings and Import Rendertarget Settings, or add a Rhino View for you thin lens camera, and save the Rendertarget to that View, then switch to the normal Perspective View to do your baking.
Good idea. Not intuitive like done at AIR, where pressing the bake button cause that the bake camera is used and not the still camera.
http://www.simulacrum.de - Visualization for Designer and Architects
Win7 64 | Dual Xeon E5-2687W | 32GB RAM | 2 GTX 780 6GB | Rhino3D
User avatar
Bendbox
Licensed Customer
Posts: 478
Joined: Wed Aug 21, 2013 1:38 pm

face_off wrote:In general, I would expect Baking to be used for things like game asset creation, so its not something which I would think would be a popular feature of the OctaneRender for Rhino plugin - so the workflow at the moment is quite simplistic.

Paul
Hi Paul,

Just to add my two cents here . . . I've never used baking in my life. However . . . I DO think it would be GREATLY beneficial to the Architectural Visualization and Product design fields, both of which have tons of Rhino users. Personally, I had a client as me last year if I could do a navigable scene of a new residential streetscape I had done several Arch Vis shots for using Rhino and Octane. Also, just a month ago, I had a client that I had done an Exhibit design for, ask me if I could do a 3D rendered PDF of the space, like what Micha has shown in his post.

So, I guess my point is, I think that having the ability to do baking within Rhino is attractive to two markets in which Rhino is heavily used - and the easier it is to use, the better.

Again, just my two cents,
Ryan
Win10x64 / AMD Ryzen 9 5900X / 64g RAM / 2 x RTX 3090
User avatar
face_off
Octane Plugin Developer
Posts: 15717
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Personally, I had a client as me last year if I could do a navigable scene of a new residential streetscape I had done several Arch Vis shots for using Rhino and Octane.
Hi Ryan - just trying to understand your workflow - how does texturemap baking help in that instance? If you are rendering in Octane wouldn't you need to turn off all shadows when you render? In which case does it actually render any quicker than using direct lighting?
I created some 3D PDF per Rhino|AIR|Simlab and AIR baking in the past. Here some example:
I couldn't open any of these which any of the pdf viewer on my PC (although I don't have Adobe pdf viewer installed - have avoided it so far). But I need a 3rd party plugin installed to view these files?
That's what I mean, each object should get an own ID per automatic.
I will add this to the next release.
best a solution that allow to switch between baked and original material.
I don't think swapping to and from baked and original materials would be possible. The auto-creation of a baked material might be possible - but what is the definition would want for this material? Ie. what material type, and what pin values? Once the plugin created a bake material for each baking group, it could assign it to each Rhino object with that Baking Group Id. The plugin would need to convert all Rhino geometry object to have Live Geometry ON.

I also put through some Baking Id assignment changes in yesterday's release.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
prehabitat
Licensed Customer
Posts: 495
Joined: Fri Aug 16, 2013 10:30 am
Location: Victoria, Australia

Hi Paul,

No plugin is required to view a 3D PDF in the basic acrobat READER; it has been standard (but poorly advertised & arguably difficult to create content for) functionality since about 2008.
Win10/3770/16gb/K600(display)/GTX780(Octane)/GTX590/372.70
Octane 3.x: GH Lands VARQ Rhino5 -Rhino.io- C4D R16 / Revit17
User avatar
v-cube
Licensed Customer
Posts: 491
Joined: Fri Jul 22, 2011 11:02 am
Location: Aachen, Germany
Contact:

@Paul: I also initially had difficulties to view the pdf, downloading to the desktop and opening with acrobat reader solved it.

@: Micha: Really great stuff!!!
I have to admit that I totally underestimated 3d PDF, since the majority of files I saw were really crap... seems as if I might have to have another look

and by the way, I do totally agree, being able to do baking e.g. for Interiors would be a really big thing! Right now I have a lot of customers who are really impressed by the gear VR stuff (Stereoscopic cubic environments done in octane), I was already able to do 3 commercial projects, the demand for full immersive real time environments is definitely there.
A relatively easy method of getting our visualisations with baked lightmaps to the unreal engine or unity may be the key to have it in the gear VR later on.

Imagine if you could walk around freely in a e.g. high end loft by using the gear VR with the whole light solution baked into it ! -> Superawesome

my 2 cents

Andreas
Architectural Rendering Services
1 x 4090 GTX, 1 x 3090 GTX
http://www.v-cube.de
User avatar
Marvez
Licensed Customer
Posts: 97
Joined: Wed Oct 08, 2014 4:55 pm

I think the baking feature is important and making assumptions of what its use is limiting to creative process , it can be used way beyond game assets ( HL2 player myself)
the 3 pdf examples a really good examples and application prompting me in giving it a go with octane

if anyone can point me to a tutorial or bullet point the process..

thank you
I7 5820K 16MB RAM SSD850PRO GTX 970/780
User avatar
Bendbox
Licensed Customer
Posts: 478
Joined: Wed Aug 21, 2013 1:38 pm

face_off wrote:
Personally, I had a client as me last year if I could do a navigable scene of a new residential streetscape I had done several Arch Vis shots for using Rhino and Octane.
Hi Ryan - just trying to understand your workflow - how does texturemap baking help in that instance? If you are rendering in Octane wouldn't you need to turn off all shadows when you render? In which case does it actually render any quicker than using direct lighting?
Paul
Hi Paul,

I'm assuming the baking function in Octane would let you do what is shown in the video link below -- correct? I thought that you could not only bake the texture maps but the GI and shadows as well -- or is this not correct?

https://www.youtube.com/watch?v=sB09T--_ZvU

If so, then having this ability would let a client that I had created a design for, navigate the scene in a fully rendered environment. Or . . . am I miss understanding what Octane's capability is? I haven't used the Baking function yet . . . so perhaps it's not as advanced as what is shown in the above video created with Blender Cycles.

Is something like the above possible to create with Rhino and Octane with new baking function? Camera animations (with no object or lighting changes) could be created very quickly as well.

Thanks,
Ryan
Win10x64 / AMD Ryzen 9 5900X / 64g RAM / 2 x RTX 3090
prehabitat
Licensed Customer
Posts: 495
Joined: Fri Aug 16, 2013 10:30 am
Location: Victoria, Australia

Just trying to solidify my understanding;

When you bake any of the render (light) info onto the geometry; is baking resolution relevant?

ie. if you compare a flat 1000 x 600 rendered image from camera with 110° field of view vs a 4k image limited to the same field of view the shading will be visibly smoother (assuming similar viewing/print scaling)...

With a 3D PDF you may have opportunities to view parts of the model more closely than intended (variable depth) so you'd expect you base the light onto everything at the highest resolution possible/practical?
Win10/3770/16gb/K600(display)/GTX780(Octane)/GTX590/372.70
Octane 3.x: GH Lands VARQ Rhino5 -Rhino.io- C4D R16 / Revit17
Post Reply

Return to “Rhinoceros 3D”