[Suggestion] Simple 3D objects

Discussion and feedback on Construct 2

Post » Wed Dec 11, 2013 9:39 pm



Hello, I would like to make a suggestion for Construct 2 and/or Spriter

I know that Construct 2 is a 2D engine and I agree with that (if someone want to make a 3D game, then he should use another engine... like Unity). This feature should bring games closer to 2.5D or at least improve graphically the game without requiring to know "real" 3D design.

The concept is simple: As long as it looks and feel like 3D it doesn't matter if is only 2D . This concept was also used in older games



The functionality is simple: Distort the images and place them together to look like a 3D shape.



Creating an 3D object should be simple:
- Select the object shape (Plane, Cube, Cuboid, Prism, Pyramid, Sphere).
- Select object's properties (Size, Rotation X,Y,Z, Opacity, etc)
- Select object's textures or colors
*Object's properties and textures should change depending on shape (example: the Cube will have 6 textures while the 3D Plane will have only 2 textures)



In order to make it easy to display the object, there should be 2 modes of viewing:
Normal Mode that will use the screen position of the object in order to give its 3D look (image above)
Isometric Mode that will show the object with Rotation X,Y,Z regardless of screen position.

How will interact the 3D objects with the other 3D or 2D objects ? Simple, make a 2D collision for them that will also be their actual position in the editor/game.

How the game would look:


How the collisions in the game would look:


This feature could be used for the following:
- Insert 3D like object in games (power-ups, enemies, background buildings/houses)
- 2.5D like platform games
- Racing or old school GTA type of games (above view of the buildings)
- 3D isometric world
... probably much more

The greatest advantage is that it looks like 3D, but is not:
- should work in both canvas2d and WebGL
- does not require any 3D Api
- should be easier to process than "real" 3D
- should support all the effects that Sprites support

Disadvantage:
- Is rather limited so only simple objects can be madeTGeorgeMihai2013-12-11 21:45:43
B
49
S
15
G
6
Posts: 531
Reputation: 7,189

Post » Wed Dec 11, 2013 10:36 pm

Someone has already implemented the Copperlicht engine as a plugin. I'm sure there is also a 3D box plugin some where too.

However I agree. I would really immensly enjoy this integrated feature. Because even with 3D there is no collision with other objects(I think). So it's not so good for platforming. However You can just put invisible blocks to make up for that.

I have to say. You have done an incredible presentation of a suggestion. I hope Ashley does this. I do believe that 3D objects are still valid in a 2D game engine. Gameplay remains 2D, but we get the benefits of rotatable objects. So it's still a 2D engine. :)

B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Wed Dec 11, 2013 10:40 pm

You can piece that together with Rojohound's Paster object.
The math's a little iffy, but hey its just 3d matrix transformations.
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Thu Dec 12, 2013 1:28 am

@TGeorgeMihai

Do you know of a website that already handles the code for this kind of 2 rendering.

@newt
If you have a sample using Paster I would love to see it :) I want to work on a demo platformer. But i'm super desiring the perspective angling that the OP is showing off. I wanted to do before. But my desire has now jumped :D
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Thu Dec 12, 2013 1:48 am

Oh nice, didn't realeyes that the Paster had the ability to draw quads! alspal2013-12-12 04:00:58
B
147
S
73
G
20
Posts: 1,785
Reputation: 22,420

Post » Thu Dec 12, 2013 4:37 am

@jayderyu

Yeah, no.

You would be better off crowdfunding a webgl 3js plug imo.
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Thu Dec 12, 2013 4:17 pm

Nope. niether paster nor canvas would be able to do the pseudo 3d shown by the OP. Canvas a little close. You could draw lines, but there really isn't away to do pixel by pixel work or demoformatino of an image.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Thu Dec 12, 2013 6:48 pm

[quote]Nope. niether paster nor canvas would be able to do the pseudo 3d shown by the OP[/quote]
Bold words.

Anyway here's a wip using the Paster plugin like newt mentioned.
https://dl.dropboxusercontent.com/u/5426011/examples21/paster_3d.capx
It is able to do rotated cubes like the op's coin block. Notice however the distortion of the textures, we are just distorting in 2d so there is no perspective correction that you get when using true 3d.

This is pretty much just a proof of concept and is lacking many things to make it useable for a 3d platformer.
The main thing missing is polygon z sorting. This will be needed when you have multiple cubes or have sprites moving around them. Without this polygons will be drawn in the incorrect order.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

Post » Thu Dec 12, 2013 7:11 pm

I will stand corrected and I am in error. But that is because my error was not updating the plugin prior to checking. However not updating the plugin is also in my error :)

Wel Rojo rocks :)

however newt does have a point. tehre is a strange texture warping effect going on. anyway to smooth that out R0j0? Also then this raises the question.

Since paster is a single object that allows qaud drawing. How would all of this interact to simulate the effect of the OP suggestion. As a platformer or a GTA top down perspective?

Paster doesn't wortk as individual objects, but as a background.

I think I will toy with paster 0.4 for a wlittle while. but any tidbits of information or even a sample would be awesoem
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Thu Dec 12, 2013 8:01 pm

Played around very cool :)
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Cliffu and 3 guests