Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
CCB to CL; canvas scale problem

gree
Registered User
Quote
2023-01-07 18:52:50

I've managed to get a CCB scene working with the CL. But I ran into a weird issue. The html canvas does show up, but 10x smaller compared to full-width + full-height using CCB only.

I'm new to Copperlicht and messed around with CCB + JS.
Any idea why the CCB with a width/height 1920x1080px does show up as 300x150px?

I'm able to force the canvas element to a 100%; but it only "pseudo-scales" the webgl content up - everything is pixelized.

the problem is related to Copperlicht render, somehow...(?)


gree
Registered User
Quote
2023-01-07 22:01:06

Update: I forgot to include width/height of the canvas

<canvas id="3darea" width="640" height="480" style="background-color:000000">
</canvas>


Create reply:


Posted by: (you are not logged in)


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