Duardo71's Recent Forum Activity

  • I have a png image on my Files folder and I would like to use an instance of HTML Element to display it using the img tag. I'm trying using <img src:"myImage.png" width:"20" height:"20"/> as the content of the HTML Element but it doesn't work. I've also tried many variations for the src attribute, such as /myImage.png, Files/myImage.png and /Files/myImage.png, but nothing works.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • up

    I would also like to see this feature. I'm currently implementing a zoom mechanic with an effect, but the resulting image quality of the zoom is not that good. Changing the field of view at runtime could solve this.

  • Ray casting*, not ray tracing...

    Btw, here is another reference: https://youtu.be/w-Bk8a4F9mw

  • This may help you: https://youtu.be/EcBvG4uY93o.

    If it is not enough, you'll have to use scripting and implement a ray-tracing algorithm for intersection with cubes. This will be very inefficient and so you won't be able to have many cubes, unless you find a smart optimization.

    First, have an array (a JavaScript array) with information about every cube in the game world. Each element in the array should contain a cube's position and edge size.

    Then, every frame,

    1. Shoot a ray from the center of the camera to the mouse position.

    2. Check collision of this ray against all cubes in the cube array.

    3. Get the closest cube which collides with the ray. This is the cube upon which a block must be placed if the player hits the button to place a block.

  • I'm using trilinear sampling and it seems to smooth curves and oblique lines, but only in an in-object fashion, and not inter-objects (i.e. not between adjacent objects on screen). That is: observe in the image how the lines circled in blue are completely smooth, but the ones in red circles are not. I suppose it is because pixels that come from the same objects are anti-aliased with each other, but pixels at the intersection between two different objects are not. (Sorry if I'm not using the correct terminology, I'm not a specialist.)

    Does someone know how to remove the jagged appearance from the parts circled in red?

  • Hi, I have some feature ideas for the devs at Scirra. I don't know if they are good or if many people would like to use it, it's just some ideas I had.

    1. Add the feature of being able to use the DrawingCanvas on 3D layers (when using the 3DCamera).

    2. Add the feature of saving the image a 3DCamera sees onto a DrawingCanvas (even if this DrawingCanvas is on a 2D layer).

    3. Add the feature of creating a secondary instance of the 3DCamera (which would only be useful if you are using feature 2).

    This way, we will be able to do two things in Construct 3 which, as far as I know, we can't right now.

    a) Emulating mirrors.

    b) Doing split-screen games in 3D.

    Additionally, we would also be able to do games like this (a game inside a game).

  • I'm not sure what exactly you would want to do with such an interface. What kind of manipulation or handling are you talking about?

    Hi Ashley, thanks for answering. It's been a while so I don't remember exactly what problem I was trying to solve, but from what I can recall I basically wanted to iterate over all instances of a family with JavaScript, just like you can with the For each System condition. I happened to solve the problem without using families anyway, but that was it.

  • The title is pretty straightforward.

  • Hello. I want a way to create, dispatch, and listen to events I create myself through scripting. I've seen from the IBehaviorInstance API docs (cf. image) that this seems to be possible with the C3.Event constructor. However, I can't find the docs for the C3.Event constructor or even for the C3 API itself. Could someone provide me with the link for the docs so I can learn about it (or maybe just tell how to create, dispatch, and listen to custom events using this C3.Event)?

    Tagged:

Duardo71's avatar

Duardo71

Member since 4 May, 2022

Twitter
Duardo71 has 1 followers

Trophy Case

  • 2-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies