Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / a2DrawImage do not draw

Author
Message
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 29th Aug 2014 02:48
Here is some example code:



The example is working fine, but for some reason when i add it to my project it's not working anymore.If i use set camera to image 2, 3000, 150, 150,2 it's not showing anything if i use set camera to image 2, 3000, 150, 150 it shows only black square where it should be the image from the camera.Ican't find anything special that can cause this.So frustrated, i hate when this happens, something that should and could but do not work for no apparent reason...

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 29th Aug 2014 15:13
Your example works perfectly for me. What happens if you swap out "a2DrawImage" with "paste image"? If it still fails then I can only assume that your graphics card does not support render to texture using the "generate alpha" option of "set camera to image".

[b]
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 29th Aug 2014 18:29
It was sync mask that caused this.When i add the second camera it worked.Completely overlooked this, it's getting harder as the project goes bigger and bigger.Using shaders and multiple cameras is a bit tricky for me.Everything is so sensitive and i'm not sure how half of this stuff works...

Coding is My Kung Fu!
And My Kung Fu is better than Yours!

Login to post a reply

Server time is: 2025-05-15 00:48:41
Your offset time is: 2025-05-15 00:48:41