ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator Source code - improvements
person icon
guest_Robbo
Guest
Quote
2024-10-08 07:54:19

On another note of success, today I was able to convert any ttf fonts you like into png and then load that png file into CopperCube to replace existing fonts.

I created one API to load new fonts and another one to use it on any particular 2d overlay with adjustable size. It works well.....for my next update though...

So either load new fonts (at runtime) or use the previous method to load a line of text from a pre-made texture file - both work well...

person icon
Monks
Guest
Quote
2024-10-08 12:05:19

That's nice, thanks bro

person icon
blackwater
Registered User
Quote
2024-10-08 12:20:51

The font-thing-fix gets me really excited - If it's that much simplified it'll be a huge game changer! Much looking forward to this!!

person icon
guest_Robbo
Guest
Quote
2024-10-11 04:23:55

After spending a few days working out the best way to load correct fonts have prett much finished now.

I have a method to auto load the font you want at startup and replace any existing fonts.

I also have the ability to just load any font and apply to certain 2d overlays only.

Also can just show certain line or lines from pre-made images and so image based text.

All 3 methods work well and just finalising the API's and a few things...

person icon
guest_Robbo
Guest
Quote
2024-10-14 01:55:33

I have finished and made a video on my new font loading API's:

https://youtu.be/r3pi108cxms

You can get the latest version of all of my API's using this link also:

https://robo25.itch.io/coppercube-new-apis


ps - thankyou to Balin Palmer for your generous donation also.

cheers, Robbo

person icon
UpgradedCCApiFan
Guest
Quote
2024-10-22 14:44:36

Hello @Robbo,

for OpenGL/Glsl shader scripting CopperCube only lets us use texture slot 1. What do you think, would it be possible for you to fix the problem so that we can at least use a second texture slot 2 for any custom glsl shader programming with your upgrades CC API's?

I suspect it's a problem with the OpenGL texture binding in CopperCube's source code:

glActiveTexture(GL_TEXTURE0);

glActiveTexture(GL_TEXTURE1);
glActiveTexture(GL_TEXTURE2);
glActiveTexture(GL_TEXTURE3);

person icon
guest_Robbo
Guest
Quote
2024-10-24 09:29:12

Hi 'UpgradedCCApiFan'

Most of my API's are designed to work with DirectX as I don't use OpenGL myself so I don't spend any time working out how to fix anything with it and also shaders are not really my speciality either.

Some of my API's are driver independent (work with either) but some only work with DirectX

Maybe JIC can have a look for you ?

person icon
guest_Robbo
Guest
Quote
2024-10-29 05:00:49

My upgraded source code now also works with the Free version of CopperCube - from the same link above.

I have just added in a new cross fading 2 textures material also for directX. It might be good for day/night cycles and a limited animated texture type of thing...

person icon
guest_Robbo
Guest
Quote
2024-11-03 01:51:34

For the last post I was using the most recent updated Visual Studio version and this caused some problems.

I have reverted it back to an older version and works better now.

If you recently downloaded the files within the last week please do this again as I re-uploaded the fixed version.

No known issues at the moment - enjoy.

person icon
guest_Robbo
Guest
Quote
2024-11-03 12:20:11

Up until now the 2D overlay images cannot be faded in and out with adjustable transparency.....until now that is...

Its working fine using the 'ccbSetSceneNodeProperty' API.

The new property is called 'Image Alpha' with a range of 0-1.
1 means fully transparent while 0 means default transparency.

For my next update....

person icon
guest_Robbo
Guest
Quote
2024-11-08 08:49:21

Lots of new upgrades:

- 'Image Color' - like 'Image Alpha' can now be set and 2D overlay images can also have the vertex color changed if needed.

- Better non shader sprite sheet texture splitiing. You can now have varying number of items per row and still work fine. Works with X and Y positions for multiple items per row and as many rows as you like also. Used to reduce number of individual textures by combining together and better for performance.

- 'SoundFX' property of ccbSetSceneNodeProperty now works with all sound effects. I will try add another option to vary the intensity of each effect if possible also.

Will be in my next update....

person icon
Sikes
Guest
Quote
2024-11-08 11:00:17

Good job robbo

person icon
guest_Robbo
Guest
Quote
2024-11-16 11:41:36

The New API's for 2D overlays and 3D sound nodes as mentioned above are available on itchio.

My next video and update will have the background scene loading for a permanent menu system across all ccb file loads.

person icon
guest_Robbo
Guest
Quote
2024-11-16 12:39:15

thanks Sikes and see me video for more:

https://youtu.be/xaHpZPz7634

Note the ccbSetLine2D API is now called ccbSetImageCrop instead.

person icon
guest
Guest
Quote
2024-11-17 01:23:22

where are you documenting your changes? I can't trust you without documents...


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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