Can I use texture as canvas surface?

Discussions about Coding and Scripting
Post Reply
User avatar
Voodoo Doll
Average
Posts: 42
Joined: Wed Aug 03, 2011 2:27 am
Location: Russian Federation

Can I use texture as canvas surface?

Post by Voodoo Doll »

Hi all.

I want to place some movable objects on a surface, which can be located at wall, like computer screen. To place this right on player's screen, I can use PostRender() or WeaponPostRender() of player pawn's inventory. I want to place this on the wall, or on the mesh polygon (e. g. to make weapon scope which shows zoomed area, right on some sort of screen, attached to weapon). This must looks like cameras in Duke Nukem 3D. Is this possible? I looked UsableScreen package, but it seems there are only predefined textures there, which are being replaced by each other via UScreenSliceChanger class.
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Can I use texture as canvas surface?

Post by JackGriffin »

Check out Translocator Cam, that might give you what you need. It does some odd stuff online though, as does most all the camera-type actors. Wormbo's rocketsUT has an embedded missle-view camera that is well done (though intensively coded). These draw the view to canvas though and not to a static object. As far as I know that's not possible.
So long, and thanks for all the fish
User avatar
Voodoo Doll
Average
Posts: 42
Joined: Wed Aug 03, 2011 2:27 am
Location: Russian Federation

Re: Can I use texture as canvas surface?

Post by Voodoo Doll »

Mega pity :/
thanks anyway
User avatar
Dr.Flay
Godlike
Posts: 3348
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK
Contact:

Re: Can I use texture as canvas surface?

Post by Dr.Flay »

Only other thing I can think of that is close, is the Portal Gun mutator.
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Can I use texture as canvas surface?

Post by JackGriffin »

That's a 2k4 mod though as far as what he wants to do with it. The difference between ut and 2k4's portal gun pretty much sums up the improvements made in between the two engines.
So long, and thanks for all the fish
User avatar
Dr.Flay
Godlike
Posts: 3348
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK
Contact:

Re: Can I use texture as canvas surface?

Post by Dr.Flay »

Is there anything in the SDK that can deal with it?
http://www.ut99.org/viewforum.php?f=29
User avatar
Shadow
Masterful
Posts: 743
Joined: Tue Jan 29, 2008 12:00 am
Personal rank: Mad Carpenter
Location: Germany
Contact:

Re: Can I use texture as canvas surface?

Post by Shadow »

Hm the SDK, well I don't really understand what he's trying to pull off, otherwise I would advise using the Projectors or the advanced sprites
Image
Post Reply