Page 54 of 92

Re: BlendLuxCore Development

Posted: Sat Jun 08, 2019 6:42 pm
by B.Y.O.B.
HugTower has implemented a new math texture: rounding.
You can specify the increment to round to.
For example, if the increment is 1, you get no decimal places after rounding: 34.567 -> 35
If the increment is 0.1, you get one decimal place: 34.567 -> 34.6
The increment can be textured.

I have added the support in BlendLuxCore on the 2.79_maintenance branch: https://github.com/LuxCoreRender/BlendL ... aintenance

Re: BlendLuxCore Development

Posted: Sat Jun 08, 2019 8:20 pm
by B.Y.O.B.
The 2.8 port is coming along, I'm laying the foundations step by step.
What's working so far:
- the addon registers without errors (I had to edit 150 files to reach this point, a lot of search/replace of course)
- I have ported the viewport draw code to modern OpenGL
- I can start a small, hard-coded testscene that is rendered in the viewport, and I can move the camera around
- I have ported our C++-accelerated mesh conversion code, so I can load meshes from Blender into Lux (at the moment only one object can be used)

What's not working yet:
- Everything else
- Final render, viewport render, material previews are not usable yet
- The whole UI is disabled, meaning that the property window is very empty
- The viewport camera is slightly off for some reason

I'm mostly done with the groundwork though.

Re: BlendLuxCore Development

Posted: Sat Jun 08, 2019 8:42 pm
by lacilaci
Beautyful progress :!:

Re: BlendLuxCore Development

Posted: Sat Jun 08, 2019 10:21 pm
by Sharlybg
Wow this is a sooo good news. Nice progress. :)

Re: BlendLuxCore Development

Posted: Sun Jun 09, 2019 9:10 am
by provisory
👍

Re: BlendLuxCore Development

Posted: Mon Jun 10, 2019 6:09 pm
by B.Y.O.B.
I have renamed the branch "2.79_maintenance" to "2_79_maintenance" because Blender doesn't list the addon if the name contains a dot.
https://github.com/LuxCoreRender/BlendL ... aintenance

This is the branch where 2.79 fixes will be commited. If you want to use the latest daily builds, download from there.

Re: BlendLuxCore Development

Posted: Tue Jun 11, 2019 11:38 am
by Piita
What?! Does Blender 2.8 have such a big internal change compared to 2.79 that you have to redo the entire blendluxcore?

Re: BlendLuxCore Development

Posted: Tue Jun 11, 2019 11:56 am
by lacilaci
Oh I see, so there's no master anymore, until 2.8 becomes master?

Re: BlendLuxCore Development

Posted: Tue Jun 11, 2019 12:17 pm
by B.Y.O.B.
Piita wrote: Tue Jun 11, 2019 11:38 am What?! Does Blender 2.8 have such a big internal change compared to 2.79 that you have to redo the entire blendluxcore?
Pretty much, yeah.
That's why I hesitated so long to start this massive project.
lacilaci wrote: Tue Jun 11, 2019 11:56 am Oh I see, so there's no master anymore, until 2.8 becomes master?
Yes, master will not be used, instead there's one branch for 2.79 and one for 2.8, and eventually the latter will be merged into master.

Re: BlendLuxCore Development

Posted: Wed Jun 12, 2019 5:53 pm
by B.Y.O.B.
HugTower has implemented a new math texture: modulo.
It exposes the "fmod" operation: https://en.cppreference.com/w/cpp/numeric/math/fmod
Meaning that it returns the remainder of the floating point division of value 1 divided by value 2.

I have added the support in BlendLuxCore on the 2.79_maintenance branch: https://github.com/LuxCoreRender/BlendL ... aintenance