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 / Camera projection on a face of a mesh?

Author
Message
Sph!nx
16
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 10th Apr 2013 19:06 Edited at: 10th Apr 2013 19:07
Hey all,

Is it possible? Like Half-life 2 and most other modern games?

Would be cool to use for TV's, security cameras or something more interactive like computer (touch) screens and such. I'd like to experiment with this but I'm a bit clueless on the matter. Any suggestions or alternative ideas?


Kenneth

Regards Sph!nx
www.mental-image.net
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 10th Apr 2013 19:20



I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
mr Handy
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 10th Apr 2013 19:35
Also you will need "sync mask" and "fastsync" commands. Like this:

make camera 1
set camera to image 1,100

do
do something
sync mask 2^1: fastsync
do something
sync mask 2^0: sync
loop

«Just because you’re unique, doesn’t mean you’re useful»
Sph!nx
16
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 10th Apr 2013 19:55 Edited at: 10th Apr 2013 20:08
Wow, thanks a lot, guys! Pretty simple actually...

Just for clarification: A sync mask is something like a false sync in order to refresh the camera but not draw on the screen, like a normal camera, correct?

Edit:
Okay, another question. What would be a good solution for interactive computer screens (in games like doom3. etc)? I've got several ideas on making it interactive, using up 3D space for let's say, a 2D interface printed would not be handy... I hope I make sense here... Any thoughts on that?

Regards Sph!nx
www.mental-image.net
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 10th Apr 2013 22:35
Don't use sync mask, just use sync camera.

For interactive Doom3 style computer screens, I'd suggest Faziqium's (spelling) DBFlasher plugin. It's a lot like Scaleform, and allows you to play flash animations direct to a texture, including the ActionScript commands.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Sph!nx
16
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 11th Apr 2013 10:37
Thanks Mobiius, I will surely take a look at it!

Regards Sph!nx
www.mental-image.net
mr Handy
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 11th Apr 2013 15:15
Sync mask tolds the certain camera to render all currently included/unhided objects at current state. For example, you want to make all of your characters look red on the security monitor, so you color them red, mask and sync security camera, then color them back to normal and sync and render main camera 0.

«Just because you’re unique, doesn’t mean you’re useful»
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Apr 2013 15:41
Or you could use the imagekit and color the image directly.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
mr Handy
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 11th Apr 2013 15:53
Oh really? I thought camera image is locked. AFAIR I was unable to make memblock from that.

«Just because you’re unique, doesn’t mean you’re useful»
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Apr 2013 18:33
I'm sure you can IK the camera image. You can shader the camera image, so why not IK?

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Sph!nx
16
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 11th Apr 2013 19:06
Found a solution for more interactive computer simulations.

To create simulated ui, like in doom 3 I found that Matrix utilities has draw to image commands. So, texture and object, use that texture with the draw image command and voila! Ran some tests and it works like a charm!

Regards Sph!nx
www.mental-image.net
Southside Games
15
Years of Service
User Offline
Joined: 1st Jan 2010
Location: Don\'t tell me what to do!
Posted: 17th Apr 2013 07:33
well you learn something new every day!

Login to post a reply

Server time is: 2025-05-17 18:22:21
Your offset time is: 2025-05-17 18:22:21