rufson's Forum Posts

  • You do not have permission to view this post

  • LukeWDid a tut about interpreting JSON file from Dialogue Designer https://www.construct.net/en/tutorials/dialogue-designer-construct-2624

    Or wait for mine "Node Dialogue Editor" made in Construct 3

    I have build in dialogue player so you can simulate interaction without importing all files to the game while designing dialogue only. I still working on it, addind new features and nodes. Next month, I will release a public small free beta.

    Stay tuned

  • Sure

    Layout view:

    Origin: Top-left for: DrawingCanvas and ScreenshotSprite

    then when you resize DrawingCanvas and ScreenshotSprite you will get the desired resolution snapshot - but this work only with Fullscreen quality Low

  • q3olegka

    Remove 1.333 from scale abs(180/(3Dbill.d+distance(camH,0,3Dbill.ZElevation,0))) for 45fov and should be fine, maybe not perfect but much better.

    Then you need also to adjust the 3Dshape sky height and camera H on mouse wheel.

    Optimization in this case depends on many factors, I made simple self picking distance variable without for each loop beacuse self is faster(and actualy is a loop too). When the distance is bigger than 0 then objects are at front of the camera then do tranformations etc But this is not the best solution when you have a lot of objects because engine must calculate every tick the distance for each sprite to compare them.

    If you want to have a lot of objects then you should consider to lock camera angle to avoid visible horizon (like in Don't Starve game) and then sort and transform only visible objects after picking them. You can pick those instances on 3D layer using square invisible sprite which follows camera but can't rotate with it(rotation will impact collision performance). 3D sprite that is in 3D layer and have 2D sprite in container should also have square collision shape like 4 corner only and can't rotate(this is the fastest picking on overlap event) Check out that post from page 1 to 2 that is exacly about this method: https://www.construct.net/en/forum/construct-3/general-discussion-7/picking-performance-132709

    Another method is to store objects in a Array and create them when camera or player is around and unload objects that are far away(many games do this). Then you can create very big worlds but this is more complex to achieve.

    You should then consider things like:

    - Storing static objects and its state variables for animation frame, life etc

    - to not create all of them from a array when needed in one tick(creating and destroing a lot of objects at once have performance impact)

    - Storing moving objects with variables and behaviours

    - And many more things that depend on the game design

    You can even instead of Array handle map cluster checking on which tilemap the player is and spawn objects designed for this biome and unload those far away.

    Good Luck!

  • Ups the events order is wrong, move "CAMERA" event group above "3Dto2D" group:

    like this:

  • Hey

    Maybe my example will be helpful. No mesh needed! Rocket&pilot included :O

    https://rufson.itch.io/3d-to-2d-sprites

    I didn't know there was a function like: 3DCamera.CanvasToLayer...

    and I had to test it asap:) Thanks Colonel Justice

    For the costly square root I used fast(I think so) perpendicular distance math instead - I'dont remember where I found this formula but it works:

    set billboardSprite "A" variable to: (angle(CameraSprite.X,CameraSprite.Y,self.X,self.Y))-CameraSprite.angle

    then billboardSprite "B" variable to:

    distance(CameraSprite.X,CameraSprite.Y,self.X,self.Y)*cos(self.A)

    then set billboardSprite scale:

    abs(scale variable/(self.D+distance(CameraZ,0,self.ZElevation,0)^1.333))

  • Thanks for the clarification. I had a little fun with your project and while seeing math behind "Cross Product of 3D Vectors, polygon normal..." my brain melted. Then I added magnitude to obj z variable and regained consciousness.

    I like how it deforms.

    Going back to your 3d raycasting math, I thought it would be fun to deform(push) polygons in the oposite normal direction in the array by clicking it(some kind of object destruction on time)...I will back to this someday :)

    Best

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I was thinking some time ago about loading the obj file into the mesh distort. Thank you for this example file.

  • toasted_water

    Yes, you have to pay but you can also use up to 25 events in free version and maybe more if you register(I don't remember)

    Here is 3D project from the build-in template: https://editor.construct.net/#open=first-person-platformer

  • I had a little fun with Rojo3d and I'm impressed. I will definitely do something in my spare time, maybe some kind of ps1 demake horror.

    I have not tested this idea yet but for example: rigged obj are not suported but I can swap obj frame seq files and sync them to the animated sprite frame for easier control?

    like: if sprite(walk animation) is frame 1 then show walk_frame1.obj ...

  • > > Very good tarek2 !!!

    > > A group of person asked me for my main Capx to Export my game either to Switch or PS4 or 5 and Xbox , Its that normal !!??? giving away the Master Capx to make any export to any consoles !!??

    >

    >

    > If the reason is just for exporting the Game from C3 then you have an easy choice there I guess, as exporting from C3 is very easy is like a few clicks depending on the platform, anyone could do it so why they don't tell you which Platforms they need and you export it for them? that should be the best possible solution and safe for both. I guess there is a lot of context missing so I'm judging for what you revealed so far.

    A group of person asked me for my main Capx to Export my game either to Switch or PS4 or 5 and Xbox , Its that normal !!??? giving away the Master Capx to make any export to any consoles !!??

    gametime777

    Sign NDA with them and you will be fine.

  • gametime777 Are you the same person as MasterQuest

    Are you asking about sharing your mode7 racing game? I'm curious, I know how much time you spend on it. Sometimes decisions like this can be liberating, for example take a look for a open source projects, people colaboration and what that movement do to the software tools and community focued on it. 3D Blender history is interesting! DOOM source code and what amazing things people do with it to this day! and this is just a drop in the ocean.

  • Sooo you quit !!!! I knew that !!! cause this about mode7 ain't eazy at ALL !!!!

    it took me years to perfect the code plus all the hundreds of MECHANICS TOO !!! Why you Quit !!!

    This Capx of yours its missing a looooot of mechanics to achieve the final version of a real Mode7.

    and what about your other car racing game !!!

    Here's my Mode7 in Development !!!!

    Subscribe to Construct videos now

    MasterQuest Happy you figured it out!

    Feel free to add more mechanics to my source project if you like. My example is simple as it is, made long ago under time pressure for commercial show. I uploaded it years later reorganized in events to make it more clear for someone who still wants to use this method for free & to free myself from the promise I made years ago. I'm not racing with anybody here, we are all here on the forum to help each other.

    Nowadays the same mode7 effect can be achieved much much easier using the new native 3D elements in construct3 without any perspective shader, rotation problems etc.

    But If someone like to reinvent the wheel why not! Folks who likes coding wizardy things in the events/expressions & javascript for fun and satisfaction - I respect them very much! Time is going, new amazing features are added to the engine by Construct developers to speed up many things and now I try to focus more one the design and finishing the product than making crazy never ending prototyping about something that was not designed for this great engine in mind.

    I wish you all the best with your project. Don't hesitate to send me the link when you finish it.

    Peace

    PS

    I'm not giving up :) I still use the Construct engine with my lovely team NO JOY to complete the HUM game which includes a little racing game and a lot more.

  • Colonel Justice

    I totally understand your determination but I personally gave up the massive ray shooting temporarily. Good luck with the hybrid raycaster!

  • Better late than never :)

    jatin1726UnixRootUberdroidGamessizcozhcatarrunasgametime777MasterQuest ThatboyMike

    Enjoy the source file:

    https://www.construct.net/en/free-online-games/paq-racing-mode7-35053/play

    Special thanks to R0J0hound & rexrainbow for the famous effect and behaviors

    This refer to this old topic construct.net/en/forum/construct-2/your-construct-creations-23/paq-racing-mode7-mastered-137920

    Maybe someone will find this source useful.

    Best :)