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 Discussion / code for ignoring 3d/2d in a screenshot?

Author
Message
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 9th Apr 2009 05:53
is there some code that will hide any 3d or 2d in the current camera view, meaning if u turn off 3d then the object will still be there but only sprites, DBC 2d graphics, etc are shown

There are only 10 kinds of people in the world, those who understand binary and those who dont
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 9th Apr 2009 06:18
Ummmmm.....



lol jk but i think that the backdrop has to be on for 3d to work so maybe if you turn it off then they won't show up? just a thought though.

New Site! Check it out \/
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Apr 2009 09:46
Hiding all of the 3d is one way. Turning off the backdrop disables the refresh of 3d but any objects on screen will remain unless they are deleted or hidden or moved out of view. You could position the camera somewhere where there is no 3d visible.

You can also mask the screen with an offscreen bitmap then do your 2d drawing. Though the 3d is still being rendered behind "the mask" so performance could lag depending on how much 2d and 3d are going on simultaneously:



Enjoy your day.
t10dimensional
16
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 9th Apr 2009 22:57
off subject:
how long have you been programing on darkbasic @smarguy

im new at this
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 9th Apr 2009 23:04
not quite 2 years, havent been seriously into it though until about 6 months ago, why?

reason i posted this thread is cuz im working on a clone of the lego designer program, it lets u take lego pieces and build watever u want.

i got evthing working xcept the change color subroutine

how it works is its supposed to make a black box over the entire screen, hiding all 3d. then it uses the DBpro box gradient command to make gradient boxes of all possible colors.

it then loops until you click and uses point command to check the color of the spot you clicked and sets that color to the current color

the weird thing is it works, but the black and gradient boxes dont show, so the only colors you can change to are the backdrop color and the white in the wiredrame matrix behind the objects

ill post the code here in bout 30 min

There are only 10 kinds of people in the world, those who understand binary and those who dont
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 10th Apr 2009 00:04 Edited at: 10th Apr 2009 00:09
heres the code, note that it is Pro



[Edit]

weird, for some reason if u move the box drawing codes into the repeat...until loop then they show up

still having trouble with getting the color of the point below mouse, point does work on 2d, right cuz its going thru the 2d and giving me the color of the backdrop

There are only 10 kinds of people in the world, those who understand binary and those who dont
t10dimensional
16
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 10th Apr 2009 02:59 Edited at: 10th Apr 2009 03:18
i wanted to know because i was just wondering how long it took you to get to yuor skill levle now. i've had darkbasic for 6 months now but i just started to get in to it about a month ago.
i still dont know much but im learning

and how did you change your picture?

im new at this
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 10th Apr 2009 06:21
goto (lol) any image search engine, find an image, pull up the white window with just ur pic on it, then copy + paste the URL into the image text field in the forum profile section of ur profile

There are only 10 kinds of people in the world, those who understand binary and those who dont

Login to post a reply

Server time is: 2025-08-08 20:42:40
Your offset time is: 2025-08-08 20:42:40