Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Robbo's new API's

Robbo
Guest
Quote
2023-09-03 07:04:25

I will soon post a video about some new API's I made to the source code of CopperCube for better Fog.

ccbSetRangeFog (looks better)
ccbSetLinearFog (more experimental)


Previous additions have been:

FPS camera controller - rotation speed
FPS camera controller - jump speed
FPS camera controller - canfly

ccbSetTerrainTexHeight

SpotLights now work dynamically
Spotlight - InnerCone
Spotlight - OuterCone
Spotlight - Attenuation
can all be changed using the

Updated free version exe will be provided also that wont run post processing just as the free version unless you have the Professional edition created exe file so no issues with copyright.


Dieter
Guest
Quote
2023-09-03 15:11:07

Sounds good. What about the "white seams" problem of masked textures in fog? AFAIR this was a webGl issue for z-sorted "plant materials" only (?) Still searching for a solution.


Simba
Guest
Quote
2023-09-03 17:24:12

You are 8 years behind.

This concept is known as a playable promotion.

Mini games embedded into websites , email links and mobile apps.

These games are typically low resource and portable by design.

Often they are games based on the product, such as McDonald etc...

They have been around for a very long time and you did not invent the niche.


VP
Guest
Quote
2023-09-03 17:42:10

Sounds good @Robbo! Keep going buddy, these are really handy features.

@Dieter - have you tried "flattening" the texture to prevent bleeding of white-space? It should get rid of the seams. Additionally, as a cheap&nasty fix, you can uncheck "bilinear filtering" (which will remove the 1 pixel interpolated blend to the texture edge). There are plugins and online services to flatten textures. Personally,I use flaming-pear's flatten texture plugin.


VP
Guest
Quote
2023-09-03 17:45:41

...or, as a last resort, you can shrink the UVmap islands by 1 pixel - it will work but it's not the easiest option.


Dieter
Guest
Quote
2023-09-03 18:10:14

Hey VP, thanks. I'll try the bilinear filtering.
Not sure what "flattening" means, but I make sure RGB of the outline is stored in the nearby alphaed pixels by keeping a (gfx editor) layer copy in the background that's blurred and set to 5% transparency. This works nicely in directX.

In webGL the seam somehow ignores the fog I guess, so you see the skybox color.

Thanks anyway, but let's not hijack this thread.


Robbo
Guest
Quote
2023-09-04 07:57:21

The video is in progress currently but happy to say I found a fix for the skybox fog in the corners - now it works perfectly using RangeFog - so much better than default fog...


okeoke
Registered User
Quote
2023-09-04 08:21:26

Hi Robbo,

SpotLights now work dynamically

Does it mean it's possible to change its direction now?


Robbo
Guest
Quote
2023-09-05 08:44:17

Yes, you can change its direction now.
It works in the supplied exe file plus ccb file also.

See the video here:
https://youtu.be/Qf0cwyHWdg0

Download the files from itchio:
https://robo25.itch.io/coppercube-new-apis

ps - directional spot lights get turned off for some reason at the moment when using realtime shadows...I will take a look at this...


writer
Guest
Quote
2023-09-05 11:51:29

Nice Robo!


Robbo
Guest
Quote
2023-09-05 12:05:37

thanks for the comments guys.

I just refreshed the files as previously had an inverted post processing vignette when you run with Professional version which can be good also but in case you don't want that then re-download again, cheers.


andgameplay
Registered User
Quote
2023-09-05 14:19:13

Thanks Robbo, it's amazing!


Robbo
Guest
Quote
2023-09-08 08:22:18

cheers 'andgameplay'.

New API - screen resolution and size:


ccbSetScreenResolution(width, height, fullscreen);

sample - ccbSetScreenResolution(1280, 720, false);

Work nicely with retargeting of camera needed 30ms after change needed.

if you are using Windows rescale other than 100% might have some text issues in certain situations.

Available on itchio as per usual..


just_in_case
Moderator
Quote
2023-09-11 07:10:39

Cheers Robbo, I also have API for the internal game resolution, hope your's is for the actual screen resolutino and not for the internal game.

I wanted to try and check it myself but I am unable to download the file from itch.io it gets detected as virus by chrome and get's deleted as soon as it is downloaded.

When downloading it through mobile and transferring to PC, Microsoft defender treat it as virus. Below is the attached ScreenShot.

🔎︎



Robbo
Guest
Quote
2023-09-11 12:17:14

Hi just_in_case - good to hear from you.

My one adjusts CopperCube itself rather than the screen resolution (which affects windows itself) so seems to run a lot quicker than adjusting screen resolution which I prefer it that way.

If you are running windows DPI other than 100% then might cause text resizing issues when going from windowed mode to a higher resolution full screen. Other than that seems to work quite well.

I was previously using an external program (Qres.exe) just to do this but was bit slow and also affected windows itself which is not the best solution and I prefer not to have to include external programs to get CopperCube to run right.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (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