Frictional Games Forum (read-only)

Full Version: Thomas, 2008-02-29, "Multiple Views" (includes demoapp)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Time for another work log.

This time I have finally implemented the single largest change in design for the new engine - the Viewport. The last engine really only had one world and one camera that could be active for the frame to be rendered and this was something I wanted to change for HPL2.

The way the viewport system works is that one can create one or many viewport objects and each object can contain a World, Camera, Renderer, RenderTarget, etc. None of these objects need to be unique for a given Viewport, meaning that you can have multiple Viewports with the same World if you want to get many different views on the same scene. Each of these Viewports can also have different Renderers assigned to them. By using this functionality one can let different views be rendered in different ways, one wireframe, one normal, one heatvision and so on.

The view ports can also be rendered to textures letting you do TV screens that show display the view from a security camera or something completly different like a mini-game taking place in a totally sepperate game world. The possibilities are endless and this will make the new engine a lot more powerful and versatile.

The demo app for this work log renders one world, from 4 different views. This is done using 4 Viewports each with a unique Camera and all pointing to the same World. It also renders another world (only containing a spinning box) to a texture and displays it translucently on top of the other views. The Viewport that renders the texture with the box and large text has no World or Camera and is only used for 2D drawing.

Please check so it looks like the attached screenshot, else take a screenshot and post it below and I will try and fix.

Download Link:
Minimum Requirements:
Radeon 9600 / Geforce FX
F8: Screenshot
Yeah, graphics look crap Tongue I will soon start working on a proper renderer Wink
!!! I remember a user posting about that site a year back; have we found the source of Frictional Games next game?!
WindexGlow Wrote:!!! I remember a user posting about that site a year back; have we found the source of Frictional Games next game?!
Unbirth is an old work I started working on by myself a loooong time ago Smile

It essentially turned into Penumbra.
(unknown processor name; it's 2.4gigz or something)
x1550 video card (with 8.2 driver)
1.5gigs of ram

Worked perfectly.
It looks exactly like the screenshot, ... but the lightsource above the cube is missing ...

Windows Vista Ultimate
Intel Q6600 @ 2,7GHz
4 x 1GB Ram
No lightning implemented yet so all is as it should Smile
Alittle off-topic for the second time;
is "I am a set over all other!" an easter egg, or something more..sinister?
I think it's that the big cube is above the other four cubes. Nothing special.