Cool VL Viewer forum
http://sldev.free.fr/forum/

Can't select objects through texture based particles
http://sldev.free.fr/forum/viewtopic.php?f=6&t=2413
Page 1 of 1

Author:  RossoAms [ 2023-11-06 16:14:46 ]
Post subject:  Can't select objects through texture based particles

While cooking G&S food I noticed I can not select objects through a cloud of steam particles that is created using a texture.
I have to turn off the display of particles before I can select an object that is behind the steam cloud or if I want to pick up an object that is emitting the steam.


Script inside the cauldron:
-----
// UUID for smoke particles
key SMOKE_SPRITE = "b85073b6-d83f-43a3-9a89-cf882b239488";
// How large (meters) should the sprites be?
float SPRITE_SIZE = 0.01;
// What is the lifetime of the system in seconds?
float LIFETIME = 1;
// How many sprites/particles should be made?
integer NUM_PARTICLES = 1;
// What initial velocity magnitude should particles have (in meters/s)?
float SPRITE_VELOCITY = 0.5;
// Width of cone (in Radians) about the object's Z axis where particle will be directed
float ARC = PI;
// Offset distance from the object center to generate the system
vector OFFSET = <1,1,1>;

default
{
state_entry()
{
// Set a timer to run the timer() event every 2.0 seconds
llSetTimerEvent(0.01);
}

timer()
{
// Make a random test (75% prob) to decide whether to make a new particle system.
if (llFrand(1.0) < 0.15) // If random number between 0 to 1 is less than 0.75
{
// Make some steam
vector our_scale = llGetScale();
float x_rand_pos = llFrand(our_scale.x);
float y_rand_pos = llFrand(our_scale.y);

OFFSET.x = (our_scale.x / 2) - x_rand_pos;
OFFSET.y = (our_scale.y / 2) - y_rand_pos;

llMakeSmoke( NUM_PARTICLES, 0.01, SPRITE_VELOCITY, LIFETIME, ARC, SMOKE_SPRITE, OFFSET);
}
}
}
----
Sim server Second Life RC Ferrari 2023-09-07.6113592855

Cool VL Viewer v1.31.0.13, Nov 6 2023 16:08:17 (self compiled with -t)
RestrainedLove viewer v2.09.29.28

My environment:
CPU: Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz (3165 MHz)
Memory: 15972MB
OS version: Linux-x86_64 v5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023
Memory manager: jemalloc v5.3.1-20231028
Graphics: NVIDIA GEFORCE GTX 1050 TI/PCIE/SSE2
OpenGL version: 4.6.0 NVIDIA 535.129.03
Detected VRAM: 4096MB
J2C decoder: OpenJPEG: 1.4.0.635f
Audio driver: FMOD Studio v2.02.18 (PulseAudio)
Networking backend: libcurl 7.47.0/OpenSSL 1.0.2u/zlib 1.2.13.zlib-ng
Browser plugin: Dullahan 1.13.1/CEF 118.0.1/Chromium 118.0.5993.22
Packets lost: 1/45886 (0.0%)

Built with: GCC v11.4.0
Compiler-generated maths: AVX.


Author:  RossoAms [ 2023-11-06 16:16:23 ]
Post subject:  Re: Can't select objects through texture based particles

I tested this with the Linden viewer in Wine, version GLTF Material Import - 7.0.1.6658224456
and it does not exhibit the same behaviour.

Author:  Henri Beauchamp [ 2023-11-06 16:23:46 ]
Post subject:  Re: Can't select objects through texture based particles

This is the expected behaviour when particles picking is enabled (allows, via the pie menu, to mute particle emitters or their owner, or abuse-report them, as well as to force-refresh their texture if needed).

In the "Tools" menu, simply disable "Pick particles".

Author:  RossoAms [ 2023-11-10 01:15:34 ]
Post subject:  Re: Can't select objects through texture based particles

Thanks I need to take a look at more defaults I guess.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/