Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby ikam » Saturday, 17.May 2014, 15:25

Yop,

I made an update. Now modlight is transformed by transform operator and multiply (but it doesn't clone the light for now, only react with the pre-transformation matrix).

For multiply, it is a bit more complicated for now, because when lights are multiplied the shader need to be recompiled to get new lights and it is not a good idea to recompile shader at runtime. An issue will be to pre-declare in the shader all the lights (even if they are off) to already have the shader instructions and avoid to recompile, but it could slow down the shader uselessly because of unused lights... need time to think to a better solution.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby Skinnytorus » Saturday, 17.May 2014, 15:57

Working great! Many thanks, man! :) I suggest you copy this operator, leave just 1 light, and call it SingleModLight for compatibility purposes. Maybe this might help when dealing with the pre-declare issue...
Edit: what I meant was that the old ModLight should remain intact.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby ikam » Saturday, 17.May 2014, 18:32

yeah, compatibility purpose, I forgot this :)
Ok I'll declare a new operator.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby Skinnytorus » Saturday, 17.May 2014, 19:03

OK. Have you managed to solve the multiplication problem?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby nikitos75 » Sunday, 18.May 2014, 20:52

Guys! Please, who can share assembled last version of wz4 with transformable light system? Help!))
nikitos75
Partikelmeister
Partikelmeister
 
Posts: 85
Joined: Monday, 04.April 2011, 19:27

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby ikam » Monday, 19.May 2014, 07:48

Skinnytorus : not yet, but I'm going to do some test today.

nikitos75 : I'm going to change many things in the light system, wait a little to have all new features
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby nikitos75 » Monday, 19.May 2014, 08:04

Thanx, Ikam, I'll wait))
nikitos75
Partikelmeister
Partikelmeister
 
Posts: 85
Joined: Monday, 04.April 2011, 19:27

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby ikam » Monday, 19.May 2014, 17:50

I restored old modlight for compatibility.
Created a new one that support transformations.

For multiplications and modsingleLight, It is a real pain. because the light part engine is designed to compute all light at the same time, I only found a way to duplicate lights by adding a multiply flag parameters inside the new ModLight.
So better than nothing...
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby Skinnytorus » Monday, 19.May 2014, 18:49

OK. That should be sufficient for now. Many thanks, master Code Guru. Great work as always! =D> =D> =D>
Take a look at my first test. A couple of questions and a bug here. More test reports to come.
Attachments
lights2.wz4
(8.08 KiB) Downloaded 181 times
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby ikam » Monday, 19.May 2014, 20:03

Thanks. check my comments
Attachments
lights3.wz4
(15.53 KiB) Downloaded 192 times
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby Skinnytorus » Monday, 19.May 2014, 20:09

I see. Thanks. I also noticed that the headlight turns all the lights off. That shouldn't happen.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby ikam » Monday, 19.May 2014, 20:25

seems that the shadow crash is an old bug, it does the same with old modlight with 5 point lights and shadows on.
edit : for headlight I don't see anormal behavior
Attachments
lights3.wz4
(34.06 KiB) Downloaded 201 times
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby ikam » Monday, 19.May 2014, 20:37

fixed rot ans scale transformations, on github
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby Skinnytorus » Monday, 19.May 2014, 20:47

Some more issues.
Attachments
lights4.wz4
(37.72 KiB) Downloaded 190 times
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Werkkzeug 3 VS Werkkzeug 4 (Texture generator)

Postby ikam » Monday, 19.May 2014, 20:52

ok
Attachments
lights5.wz4
(38.27 KiB) Downloaded 185 times
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France


Return to Requests, Suggestions & Feedback



Who is online

Users browsing this forum: No registered users and 27 guests