I`m helping my friend to make his study project, and for it we need a 3d frustum, with and ability to set the diameter of the upper round surface and the bottom one in runtime, could you please advice how can it be done? I am thinking of getting the array of edgex/vertices, that are connected with the center one on the top and on the bottom, and change their coords, maybe there is an easier way to do so?
Conical Frustum in Unity3d
736 Views Asked by Blackmail92 At
1
There are 1 best solutions below
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in UNITY-GAME-ENGINE
- How to use invokerepeating and make ui text fade in/out over time?
- Player input not working properly in unity
- Get block in Mesh Unity
- Does Unity render invisible material?
- Physics.OverlapSphere couldn't detect my ‘Player’
- Cannot sync non-player objects in Unity mirror
- How to script a simple collision using hands in OVRCameraRigInteraction?
- Drawing on 3D object at Unity
- How to Override Spline Rotation for Player-Controlled Car in Racing Game?
- Why doesn't my enemy shield take damage first. Instead both enemy and shield are being destroyed together
- unity + Vuforia balck screen in android AR app
- how do I change an objects tag when the game closes
- How to remove white space in a user's input through an input field in Unity?
- Timeline doesn't start eventhough it recognises the trigger input
- Ragdoll 2D Aiming
Related Questions in RUNTIME
- Razor.RuntimeCompilation creates an error
- Runtime Error 5 in VBA: Invalid Procedure Call or Argument
- I get this message when I open (most) games on my PC
- How to download and add .class/.jar file dynamically in java runtime class path Spring Boot 3.x
- Subsetting a list of files within a folder to apply python function
- Unable to download CSV file from web URL with runtime using python
- Set button Height from a constant value defined in a class in WPF
- Set picklist Value as default value in a field on sales a engagement Runtime Object
- How to adjust differences of hardwares while executing code
- Published .NET 8 Application Includes Windows SDK for .NET 6
- Method definition and objects in Java
- How to save the JavaScript runtime state
- St_union function taking a long time to run (R)
- Pass python script directly to python -m timeit
- Showing only previous output
Related Questions in FRUSTUM
- Incorrect Frustum Culling behavior
- Create a tight frustum around a 3D model bounding volume
- Does the camera transform in Unity invert directions at the end?
- ThreeJS Object3D.frustumCulled
- frustum culling not filtering out bboxes correctly
- How far to move a point to get it out of the view frustum?
- Measure from model to frustrum edge to adjust camera
- Understand Frustum parameters in Pangolin visualizer library
- Maya C++ plugin needing to frame object with viewport from quarter camera perspective
- How change Level of Detail Attribute of objects to boundingbox which are in frustum of moving camera?
- "Screen position out of view frustum" errors followed by "Assertion failed on expression: 'std::abs(det) > FLT_MIN'" - Unity 3d
- How to implement correct cube frustum culling
- Flutter canvas. How to draw frustum or add a frustum to a basic graphic?
- Check if line segment or triangle intersects a frustum
- How to determine whether a line segment is partially contained in (intersects) a frustum in THREE.js?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For creating a cone frustum with dynamic sizes you can use the script from http://wiki.unity3d.com/index.php/ProceduralPrimitives#C.23_-_Cone
Since you create the mesh once at beginning later you know exactly which vertices are the ones for the top and bottom plane so you can easily change them dynamically afterwards.
Somewhat like e.g.
It's of course not really optimized currently but I hope you can keep going from there ;) E.g. that method creates extra vertices for the sides .. one could re-use the ones from the top and bottom cap since they match positions anyway. Further you could of course also just update the according vertices when the height and radius change, you wouldn't need to recreate the entire mesh every time since the triangles stay the same, only the vertices change positions.