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 / Set Camera To Image

Author
Message
BlackWolf
23
Years of Service
User Offline
Joined: 21st May 2003
Location:
Posted: 22nd May 2003 23:23
Hi

When I want to use this instruction, Darkbasic Pro make me use for the witdh and height max values witch is 64 ??? why ? It's not beautifull when I want him to render the scene.

I want to make a reflect on a box with this function but 64 X 64 is very small, so the reflect is very dirty

Got an idea ?

Thx
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd May 2003 00:30
That sounds like it might be a limit of your graphics card or drivers - I've managed to get it to create images 512x512.

What card do you have? When did you last update your drivers?
BlackWolf
23
Years of Service
User Offline
Joined: 21st May 2003
Location:
Posted: 23rd May 2003 00:37
GeForce 4 MX ! last nvidia drivers

BlackWolf
23
Years of Service
User Offline
Joined: 21st May 2003
Location:
Posted: 23rd May 2003 00:40
db sait to me : can't grab image due to an illegal area....

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd May 2003 01:29
This piece of code runs cleanly for me. How about you?

make camera 1
set camera to image 1,1,512,512

Try it with smaller sizes (256, 128, 64 - powers of 2) if it doesn't work, and always remember to keep it square.
The Cubist
23
Years of Service
User Offline
Joined: 26th Mar 2003
Location:
Posted: 23rd May 2003 06:19
Check out my post on code snippets called mirror,mirror?indi?

BlackWolf
23
Years of Service
User Offline
Joined: 21st May 2003
Location:
Posted: 23rd May 2003 13:38
works fine now for me thx, pb==> Power of 2 lol tsss i'm tired lol

Thx !

The Cubist : where is your code ? because there is no search command in this forum lol

The Cubist
23
Years of Service
User Offline
Joined: 26th Mar 2003
Location:
Posted: 23rd May 2003 21:44
Click on forum list and then click on code snippets. It's in there

Login to post a reply

Server time is: 2026-07-11 13:57:56
Your offset time is: 2026-07-11 13:57:56