3D Background/Foreground

For questions about using Classic.

Post » Fri Jun 05, 2009 5:10 am

You can use Bitmap fonts.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Fri Jun 05, 2009 6:51 am

viewtopic.php?f=4&t=3860

here :) coincidence.
B
2
G
3
Posts: 43
Reputation: 936

Post » Fri Jun 05, 2009 7:56 am

[quote="Azu":3nehslg0]http://www.youtube.com/watch?v=Qrg-o8FCNoo&feature=related

Bascially, I want to do something like this in the video. 2D Sprites, 3D background. Would I use the 3D Box object?[/quote:3nehslg0]

The thread has gotten off track but I'm returning to the original question here :P

It looks to me that only the ground is a 3D plane. So yes, you can get the same effect using a 3D Box (or a series of them) for the ground to get the proper foreshortening. The players, trees, and bushes can be simple 2D sprites with 3D Z layering. No need to use a mesh at all.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Fri Jun 05, 2009 8:01 am

3D Z layering?
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Fri Jun 05, 2009 9:53 am

Yes, a new feature since .99. Sprites can have Z depth just like 3D boxes can. It automatically Z sorts and scales them, and they move in proper parallax without having to use separate layers.

Check out this .cap for an example (though it's a rather simple example):

viewtopic.php?f=16&t=3701

notice how all the clouds and rocks are the same size and on the same layer, but when you run it they appear to have depth. It's just a simple example and the Z sorting doesn't work in that .cap but that can be easily fixed.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Fri Jun 05, 2009 6:38 pm

I got the visual Values, but is like off by 100.
The values is 888, I get 777.


It's not working.

I'm trying to random damage pop-up.

Here's the cap file.
http://www.mediafire.com/download.php?yyjybyzimjm
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Sat Jun 06, 2009 3:57 am

http://www.xdtech.net/construct/3dcam_v2.zip

heres a better version of 3d camera test/demo that i posted early showing 3D background (via mesh distortion); more importantly using Z-elevation to control the sprite. Also note the relation of the red line in Layout as opposed to how it looks with a distortion (the same as the ground distortion). know that it can be used to create shadows/reflections and such pretty easily.
B
2
G
3
Posts: 43
Reputation: 936

Post » Sat Jun 06, 2009 5:09 pm

Enable 3D layering for the layer, otherwise it displays the player on top of the background if you pan down :)
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,208

Post » Sat Jun 06, 2009 6:57 pm

[quote="Ashley":1n3rm4u2]Enable 3D layering for the layer, otherwise it displays the player on top of the background if you pan down :)[/quote:1n3rm4u2]
What did I tell you about making things too easy for us? 8) You rock.
Only problem is now my little red stripe gets clipped on the top of the ground texture - so you cant do "Completely flush" shadows so easily??
B
2
G
3
Posts: 43
Reputation: 936

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest