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 4 CharacterBody2D movement goes haywire on multiple instances
- Player freezes in position when swapped in for another player
- Godot 4 can't select some tiles in tileset
- How to capture viewport image in tool mode?
- Is there any better way to implement hitbox/hurtbox system in godot platformer?
- Platform with movement in godot 4.2
- How to play animations for children of AnimationNodeStateMachine in godot4.2?
- Using move_and_collide and my CharacterBody2D is moving way too fast
- Making specific part of node rotate, however appear to be pointing 90 degrees
- How to edit tiles in a Godot game?
- using gdscript procotcol buffers
- How do I detect for collisions without immediately resolving them in Godot 3D?
- List of structs in inspector Godot C#
- My system for earning cash every two minutes isn't working. Godot
- Godot 4: Changing the button font color theme override with GDScript doesn't work
Related Questions in MASKING
- Python ValueError in broadcasting although right shapes
- Masking in logback.xml with all request and responses
- How to format FirebaseFirestore Phone field with Mask when retrieved in Flutter App
- How to feed or mask missing data to RNN, LSTM, and GRU with pytorch?
- Change in line slope affecting fill_between
- How to smoothly apply currency mask in MUI DataGrid?
- Merge Vectors In APL
- Masking in power BI
- htaccess rewrite to subfolder not masking
- Masking in pytorch TransformerEncoder
- Quasar 2 vue js mask issue with thousand operator with optional decimal places
- Create an alternative ID in query Oracle SQL
- InputMask of react-input-mask doesn't work with setValue of react-hook-form
- Formatting form input Digits entries in real time is replacing the typed digit
- Why Doesn't an Exception Occur in Keras When Masking is Disabled and compute_mask() is Not Implemented in Custom Layers?
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.