Rojo3d. 3D engine for Construct 2

From the Asset Store
75 vehicle sound effects, from real looping car engines to jet aircraft and sci-fi engines.
  • To calculate direction of casting depending on the players angle do something like this:

    ax= cos(player.angle) -distance, ay = -sin(player.angle) -distance

    Thank God! I've already passed this stage...

    So you will need to nest arrays, and depending on player position access them, then arrays within them and place blocks accordingly. To do that each block has to have a boo that defines its availability.

    I was trying to do some tests with that before, but I ran into a problem: Let's say that the player can Aim at the object 'ground' which is extremely large and it's origin point is centered, also let's say the player is right at the block edge, the "it's inside radius boolean" wouldn't detect because the tests I made only takes the player PosXYZ and object PosXYZ and don't take other important values to as its length...

    How could I make this 'algorithm'/'formula' to detect the distance from player and block? Maybe I could use a: "is overlapping object", but then I must do this detection in a loop for all the object what wouldn't be very optimal...

    Also, lest say your cube is 10x10x10, then you can repeat the ray test n/10 times, so per grid and not per pixel.

    It's a great idea, not gonna lie. But it would be only for a cube exclusive game. Since objects with meshes that don't will the cubic format would be detecting even if the player isn't looking at it.

    But everything you said gave me an idea... I will try my best to see if it works. Thank you! :D

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Brooo.... I was searching for 3D Collisions and everything... I think it will be easier to learn how to program inside a 3D Engine, maybe it will be easier to learn all the Multiplayer mechanics for those 3D engines rather than learning how to implement a 3D Engine inside C2... Nah... (laughing desperately like the joker)

  • Brooo.... I was searching for 3D Collisions and everything... I think it will be easier to learn how to program inside a 3D Engine, maybe it will be easier to learn all the Multiplayer mechanics for those 3D engines rather than learning how to implement a 3D Engine inside C2... Nah... (laughing desperately like the joker)

    You know, it's not a bad idea. There's godot with its scripting and manu, and maybe ROOJ will make his own software which I am looking forward too. When it comes to me, I know c2 very well and I want to make something in it before moving on.

  • WOW!! Really?? I would love to see the project ROJO is working on... It will be similar to C2 engine? Or similar to Godot/Unity? I only knew about the existence of C2 three years ago during pandemy, also I only knew about ROJO I guess about 1 year ago...

    Seeing C2-like engines would be revolutionary!

  • megatronx

    Hey, do you know? Build each block from vertexes inside the game is there only way possible to 'disable' the invisible faces that are not being shown? maybe you had achieved this and I don't know...

  • megatronx

    Hey, do you know? Build each block from vertexes inside the game is there only way possible to 'disable' the invisible faces that are not being shown? maybe you had achieved this and I don't know...

    I don't think there is and they ae two sided.

  • WOW!! Really?? I would love to see the project ROJO is working on... It will be similar to C2 engine? Or similar to Godot/Unity? I only knew about the existence of C2 three years ago during pandemy, also I only knew about ROJO I guess about 1 year ago...

    Seeing C2-like engines would be revolutionary!

    ROOJ said maybe he will do it. Nothing more.

  • R0J0hound

    Hey what's up again. Could you give me a hand? I am trying to use your plugin (paster) but I didn't understand how to use it. Basically I am trying to write a text using sprite font, then I want to take a 'screenshot' only the area of the sprite font object and after that I would use it as texture for 3D Text. Could you help me use your plugin (paster)?

  • R0J0hound I thought I'll let you know, If you will ever decide to do the 3D construct, I would like to help you out to the maximum of my abilities, that includes doc organisation, design, ui, some web stuff, and video and sound editing if you'd go for yt video like tutos ( I did a lot of official AOZ Studio tutorial videos ), and crowd founding.

    And a suggestion: it wouldn't even have to be an event based system, but having a language like Basic, which is pretty much what construct coding feels like, would be fully sufficient to make proper 3D indie games. Main thing would be renderer and that would have to be at a level of Manu at least.

  • I would also like to help, I am not good at coding, but maybe I could help with UI textures and everything related.

  • I guess this topic kind of turned into a catch all for questions.

    megamente br

    To use paster you just move it wherever you want, then pasting other objects onto it will draw then in place onto the paster object. That’s basically it.

    megatronx

    I appreciate it, but it’s merely in the idea phase since I don’t code a whole lot. Unfortunately when/if I make it it would be smaller scoped than that.

  • add n*( tSpace.At(1,1,0) = tSpace.At(x2+1,y2+1,0) )

    Sorry to be nosy, but are you trying to compare with a info inside the array is equal to another with a fórmula...

    And if it's: true - add the x value to array

    False: add value 0 to array

    ?

    It seems correct to me. Maybe you could try using the expression:

    {I put between parentheses to be easier to just copy and paste}

    * Remove que Comments I made...

    // Start Here (

    find(

    tSpace.At(1,1,0),

    tSpace.At(x2+1,y2+1,0)

    )

    <> //Not equal

    -1

    ) // End Here

    I think this expression might work.

  • > add n*( tSpace.At(1,1,0) = tSpace.At(x2+1,y2+1,0) )

    Sorry to be nosy, but are you trying to compare with a info inside the array is equal to another with a fórmula...

    And if it's: true - add the x value to array

    False: add value 0 to array

    ?

    It seems correct to me. Maybe you could try using the expression:

    {I put between parentheses to be easier to just copy and paste}

    * Remove que Comments I made...

    // Start Here (

    find(

    tSpace.At(1,1,0),

    tSpace.At(x2+1,y2+1,0)

    )

    <> //Not equal

    -1

    ) // End Here

    I think this expression might work.

    Thanks for help attempt but I've found where problems where made.

    Simply, I've made x and y in loops with wrong value, and then in another calculation I've had wrongly placed ().

  • R0J0hound

    Can you help me out with something. Not plugin related but Idk if this is a bug or wtf?

    In the for loop y2 x2, both from -1 to 1, i'm doing this test between numbers in cells at x2,y2,2 . I'm taking number from a cell at 1,1,2 ( green ) and checking it against 4 other cells ( red ) inside 3x3x4 array. I only want to calculate cells that contain larger number then central cell and then divide them. This is super simple. It doesn't work thou! If the condition with > is there, it calculates something else, and still calculates those cells that have bigger number then central cell number. Please have a look at it and tell me is it me or it is a bug? Thx!

    Other than this, I manage to program working 3D bitwise mapping system, and this is a way I wanted to test where walls should go.

    Here's the whole loop. Conditions above are working. And I got to admit, I wanted to make one more bit calculation with condition checking same numbers for whole day today and couldn't get it to check properly, so decided on something else, and still this isn't working.

    EDIT Just realized that the first >= condition isn't working, and is passing trough. Really got to figure out is it a bug or not. Or maybe filling up array and checking it within the same for loop doesn't work?

  • megatronx

    I have no input on that other than yes you can access values in an array immediately after you set them.

    Maybe your logic just isn’t correct for what you’re doing. It could be helpful to output what’s going on at each step to debug things. Or maybe simplify the data you’re using to be able to analyze what’s it’s doing better.

    As is I can’t make sense of it. Arrays are useful but i find code using them often unreadable

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)