Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Lightmaps & dynamic lights combined :)

srfstudio
Registered User
Quote
2018-10-08 20:24:11

I've experimented a bit & managed to successfully combine lightmapped geometry with dynamic lights.

🔎︎


The process has few drawbacks:
1. Lightmaping needs to be created in external programs (Blender, Max, Maya...) & exported in B3D format.
2. Model in CC needs to be cloned - original B3D model with textures & lightmaps, cloned model with one/multiple transparent texture/textures.
3. Cloned model's texture needs to have transparency level not higher than 100/255 & it can't be grayscale/bw image, it needs to be in color.
4. Only basic lights are possible. Real-time shadows & all more advance shaders are out.

Unfortunately the method is not really working good in WebGL, which makes it more-less unusable for me, but it's working nicely in Desktop builds :)

Here is link to CCB file:
https://www.newgrounds.com/dump/...

...I never made CCB file available before, I just used zip & packed the file, hopefully that's all I needed to do for it to work :/

Cheers!


astronomical
Registered User
Quote
2018-10-09 00:32:25

Wow is this good. I'm experimenting with lighting myself and you've got it looking amazing here. Great work.

Not sure if you'd be willing to do this, but would you ever consider uploading a video to YouTube, even without commentary to show the process or chunks of it?


j9907
Registered User
Quote
2018-10-09 08:32:03

I was gonna make a separate post regarding this, but: You can import multiple directional lights if you save a single instance of it as a prefab and then import it into a scene with one already. However: It does not work as intended from what I can tell.


srfstudio
Registered User
Quote
2018-10-09 14:00:03

@j9907 Just tried it, it's actually working, never had that idea :) It's, unfortunately for me , not working in WebGL which is my main (and only) target, but it would be extremely useful for some future project.

My lightmap+dynamic lights are also not functioning as they should in WebGL. The lights are noticeable only when you place about 4 of them in the same place :) I guess these methods are only usable for Desktop builds.

@astronomical Cheers! Well it's not really anything new, when you break it down it's just lightmapping in Blender & exporting the model in B3D format.

The B3D exporter that worked for me:
http://www.rtsoft.com/forums/sho...
Blender version I'm using (2.79):
http://download.blender.org/rele...
Short video I made that goes through basic lightmapping process in Blender:
https://www.newgrounds.com/dump/...

After that you just need to clone the B3D model in CC, apply a transparent image as a texture/textures on the cloned model (you can use the one I applied in ccb file) & put dynamic lights where you want them.

...maybe I'll still do that video on YT, I guess entire process from 0 to 100 would actually be more helpful.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact