Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Help with CopperCube
Is it possible to save a lightmap from editor to disc?
Author Text

dekon_17
Registered User
Quote
2022-08-21 09:21:08

I want to try one thing on lightmaps in Copper Cube, that can be a possible solution to a problem with those black outlines that I was talking about a while ago. But first, I need to extract a lightmap from editor. Problem is, there is no directory for it, it's just "internal_lightmap". Because of this, I don't know how do I export it so that I could try to fix it.

Now about the solution with lightmaps. Copper Cube lightmapping is mostly okay, but the problem is that it does lightmapping only within those "triangles" or something (UV spaces). You can try to recreate this issue without the lightmapping. Recently, I've modeled protagonist's helmet, and for textures I've basicaly filled the UV areas with color. And this is the result:
🔎︎

I hope I explained... at least something. And I hope that it is possible to fix.

Still, is it possible to (somehow) export the lightmap?


just_in_case
Moderator
Quote
2022-08-21 10:18:58

Yes, it is possible to save Coppercube lightmaps so that you can edit them externally, I actually had an extension for this I wrote last year, let me upload that to my website and you will be able to use that extension to save the internal texture to a directory...
it will take sometime to upload it to the website, meanwhile you can download the extension from the link provided below.

https://drive.google.com/file/d/...

You need to run the game and execute the action, in order to save the texture, I didn't tried converting it in a plugin, but I think it can be converted into a plugin as well, so that one don't have to execute the game, in order to save in a directory just append the filename with the directory name like this.
 Directory\\filename


hope that helps

Regarding the issue you are having, I think that's probably because of the shading CC uses, You can try my shader that blends two textures together and can use the multiply blend mode to see if it still show the outline.


dekon_17
Registered User
Quote
2022-08-21 20:47:14

Thanks, I'll try to use this.

Also, I just found out that I forgot to tell the possible solution. So, basicaly, "extending" the pixels on the edges so that you'll have at least something beyond the UV areas. At least, that's my theory.


just_in_case
Moderator
Quote
2022-08-23 11:27:59

Just posted the plugin version of the Lightmap texture saver on my website.
[ur]https://neophyte.cf/ccb_plugin_save_lightmaps.html[/url]

It's easier to use this plugin then the extension to save the internal lightmaps

hope you are right about extending the pixels on the edges and get your issue solved :)


dekon_17
Registered User
Quote
2022-09-04 16:25:49

Okay, long time with no response, but here I am again.

So... Unfortunately, it seems a bit "impossible" to expand the lightmap. I mean, areas on wedges can be fixed... since there is at least some free space! As it turns out, the lightmap generation is a bit... Weird. That's on 1024 pixels, at least. There's 1 pixel interval between different UV areas at best, sometimes there's no interval whatsoever:
🔎︎
This problem makes it kinda hard to fix. If the areas would be placed in some pattern, maybe it would be easier to deal with. But in my result, I got intense light next to a dull area. And with these 1-pixel intervals, it isn't possible to just mix colors since it might result in some out-of-place lighting (for example, bright borders in a dark room).

This brings me to another question: is it possible to change the UV map for second texture? Adding an additional UV map in Blender doesn't seems to work.


Aiming_bullets
Guest
Quote
2022-09-04 19:39:31

Why don't you just use blender for baking lightmaps, and then use those lightmaps in CC. results will be much better.


dekon_17
Registered User
Quote
2022-09-04 19:44:20

Well, I don't actually know how to do so. I tried to follow one guide, but... It takes FOREVER to bake lightmaps. If you know any good guide for lightmapping in Blender, can you give me a link to it? Because I couldn't find any useful one.


just_in_case
Moderator
Quote
2022-09-06 10:25:41

I don't know which guide you have used, but @bracer has created this nice video to use custom lightmaps or baked textures with lightmaps, to enhance CC graphics. you can try this video.

https://www.youtube.com/watch?v=...


dekon_17
Registered User
Quote
2022-09-06 13:11:26

Huh, I might actually try that, but don't know how fast this will work. I mean, nice textures are good, but spending too much time to make the light isn't really good. Still, thanks for giving me this guide, just_in_case!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (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© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact