I'm working on a multiplayer horror game in Godot and I want to make it so you can't see your own body but others can. I heard about culling masks for this but I have no idea how they work and if what I'm trying to achieve is possible using them. The body is a Skeleton node and others should be able to see it but my camera (a sibling of the skeleton node) shouldn't be able to. Could someone explain how I might be able to do this?
How would I hide an object from a specific camera in Godot 3D?
743 Views Asked by Adi B. At
1
There are 1 best solutions below
Related Questions in GAME-DEVELOPMENT
- Physics.OverlapSphere couldn't detect my ‘Player’
- Dots and Boxes with apha-beta pruning
- Cannot sync non-player objects in Unity mirror
- Calling an event with a delay in Roblox Studio. How to do?
- writing event_management in unity
- Variable in Python going up by more than 1 at a time
- Can I pre-scale and cache Images?
- Preventing the ball from moving after restarting the game in Raylib C++
- Pixi.JS Collision detection
- Player update vs world update module in game development
- JComponent added to JPanel doesn't appear?
- How to apply the margin UI image to the end of screen as given in image, Unity?
- Points system in Unity not working. I want to count points but make both objects disappear and it's not working
- How do I launch my game on steam via script?
- Grid-like lines in my procedurally generated mesh
Related Questions in GODOT
- Godot engine collision with KinematicBody doesn't work
- Godot - set_fixed_process function
- Godot Keyboard Events
- Godot - Using 2D Sprite Animation
- Perlin noise gdscript error
- Godot - Check if Controller connected or not
- Godot - Object doesn't stop when colliding with other object
- Godot - Check if Slider is being hovered over
- Godot - Changing the scene
- Having multiple Nodes2D in a scene or having none - Godot
- Kinematic object does not detect any collisions - Godot
- Paint tilemap around the player
- Godot - Ingore Windows (OS) scalling
- GDScript String format with an array
- I want to install an older godot engine
Related Questions in MASKING
- How do you Mask URLs in HAProxy?
- Using Regex convert dd/mm/yy into dd/mm/yyyy
- mask all digits except first 6 and last 4 digits of a string( length varies )
- Masking/Blackening particular area of images in a folder (c#)
- Add hyphen automatically in text field but not able to edit the textfield (Phone number masking)
- Wordpress wp-login redirecting to wrong url when using Forward Rewrite
- Data masking through jumbling the characters in Oracle DB
- phone number rails js
- How to remove the transparent area of an UIImageView after masking?
- Special dot masked input HTML-JavaScript
- NodeJS Write a Masked WebSocket frame?
- How to apply a custom mask into a string of digits in Python?
- Python - replace masked data in arrays
- Python Regex masking key-value pairs in strings
- Masking Input in EditText in Android
Related Questions in GDSCRIPT
- Godot engine collision with KinematicBody doesn't work
- Godot - set_fixed_process function
- Godot Keyboard Events
- Godot - Using 2D Sprite Animation
- Perlin noise gdscript error
- Godot - Check if Controller connected or not
- Godot - Object doesn't stop when colliding with other object
- Godot - Changing the scene
- Having multiple Nodes2D in a scene or having none - Godot
- Kinematic object does not detect any collisions - Godot
- Paint tilemap around the player
- GDScript String format with an array
- Class method returns null every time
- Animation bug. Using godot game engine
- "Error 404" when posting SignOutUser to Firebase
Related Questions in CULLING
- Incorrect Frustum Culling behavior
- Create a tight frustum around a 3D model bounding volume
- How to do face culling in a voxel game using Java and LWJGL
- Culling lines behind a face in OpenGL
- Voxel Occlusion Culling
- How change Level of Detail Attribute of objects to boundingbox which are in frustum of moving camera?
- Update an object when an other object is within camera view
- Culling mask for GPU instanced mesh
- How to Cull Unity Shader Color Gradient Material in Scrollview?
- How would I hide an object from a specific camera in Godot 3D?
- How to implement correct cube frustum culling
- Back-face culling, does chosen vertex for view vector on triangle matter?
- Most efficient way to determine if a cube intersects a frustum
- Backface Culling Causing Transparency, Flipping doesn't FIX
- How to integrate indirect draw, instanced rendering and gpu occlusion culling in OpenGL
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 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?
The
Skeletonis not visible. However, you must have some childrenVisualInstances (usuallyMeshInstance) which are actually visible.In the usual setup, you have a
Skeletonnode, with multipleMeshInstanceas children, which also have theirskeletonproperty set to theSkeletonnode.I don't know how you are setting up your multiplayer, but if it is not split-screen you probably can swap or remove the player character but not those of the other players. If removing the
Skeletonis not viable, you should still be able to remove or hide its childrenVisualInstances.Anyway, if you do need to setup multiple cameras, you can se the
layerson theMeshInstance(or whateverVisualInstanceyou are using) and thecull_maskon theCamera. If they overlap (they have common bit flags) then theCamerawill render thatMeshInstance, otherwise it wont.See also Hide an object for a specific camera.