-
Posts
3,618 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Downloads
Everything posted by shadmar
-
[Standard] No Access to Workshop Files
shadmar replied to gamecreator's topic in Leadwerks Engine Bug Reports
Maybe there is some issue if SteamLibrary is on D: instead of C: ? (havent' tried), if so it would probably be a bug. You could do a test and put LE in the default steamlibrary on C: and see if it makes a difference. -
@rick Yes thst might be, never tried your way. I was actually using a texture cycling example: http://www.leadwerks.com/werkspace/topic/9646-animated-workshop-waternormals-usage-example/page__hl__waternormals
-
Might be something local on your side (haven't heard anyone having this issue yet) On my old laptop, I got red flickering lines along geometry when the gpu ran very hot, similar to what you described.
-
That doesn't look correct, also for terrains you need a normalmap, or you will have black dots.
-
Great stuff padawan
-
For example if you want a steady counter to increase at the same rate no matter the fps you can do something like this in your update loop: In Start() self.index=0 in Update() local count = 0 self.index=self.index+Time:GetSpeed()*0.5 --0.5 just controls the speed here. count=math.floor(self.index) count will then have a steady increase no matter the fps.
-
Models and structures are incorrectly displayed.
shadmar replied to GooderSteel's topic in Leadwerks Engine Bug Reports
Turn off debug physics. -
You invert alpha like this: (1.0-alpha)
-
Looking good there YG
-
It's probably there, but I can't see it in the video.
-
[Standard] No Access to Workshop Files
shadmar replied to gamecreator's topic in Leadwerks Engine Bug Reports
I have a ton of zip files in that folder from the workshop. somehow your not getting them stored there? -
Is this loadable, could someone test? 1. Download 2. Open map in editor (steam edition only) It should use workshop items only (so you need steam edition) Terrain was made in Geocontrol, textures are from workshop by ChrisV https://dl.dropboxusercontent.com/u/11319604/LE_maps/desertmap_workshop.map Should look like this:
-
camera:SetRange(vec2) for the drawdistance. But not adjustable in the editor viewport that I know of (wich is a tiny bit annoying)
-
Yep works here too now without gridview.
-
Leadwerks 3.2 Indie : I hate waiting in for deliveries! [HD]
shadmar commented on Marleys Ghost's blog entry in Marleys Ghost's Blog
Cool -
OpenAL missing? And what exe, Leadwerks editor or a game you created?
-
Buffer commands exposed to lua with documentation
shadmar replied to macklebee's topic in Suggestion Box
The lua exposed ones are these with //lua at the end. But no docs. virtual void SetMask(const bool red, const bool green, const bool blue, const bool alpha)=0;//lua virtual void SetColor(const Vec4& color);//lua virtual void SetColor(const float r, const float g, const float B);//lua virtual void SetColor(const float r, const float g, const float b, const float a);//lua virtual std::string GetClassName(); virtual void GetPixels(const char* buf, const int component)=0; virtual int CountColorTextures();//lua virtual void Clear(const int mode=Depth|Color)=0;//lua virtual void Enable();//lua virtual void Disable();//lua virtual int GetWidth()=0;//lua virtual int GetHeight()=0;//lua virtual bool SetColorTexture(Texture* texture, const int i=0, const int cubeface=0)=0;//lua virtual bool SetDepthTexture(Texture* texture, const int cubeface=0)=0;//lua virtual Texture* GetColorTexture(const int index=0);//lua virtual Texture* GetDepthTexture();//lua //virtual Clear(const int flags)=0; virtual void Blit(Buffer* dst, const int components)=0;//lua static const int Depth;//lua static const int Color;//lua static const int Color0;//lua static const int Color1;//lua static const int Color2;//lua static const int Color3;//lua static const int Color4;//lua static const int Color5;//lua static const int Color6;//lua static const int Color7;//lua static std::list<Buffer*> list; static void SetCurrent(Buffer* buffer);//lua static Buffer* GetCurrent();//lua static Buffer* Create(const int width, const int height, const int colorcomponents=1, const int depthbuffer=1, const int multisamplemode=0);//lua -
If you are using additive blending, youdon't need glow shaders, just the regular diffuse.shader as blendmode light will make it glow. Your texture should not contain alpha as black/dark areas will be transparent, while light areas will blend additive. mat should look something like this:
-
I think Leadwerks company is relocating to Seattle, so there is a timeout of dev acticity atm.
-
You can't use blendmode alpha since glow is set in the emissive channel and the emissive alpha channel is used for flags. But you can alpha mask it by adding this to the end if (outcolor.a < 0.5) discard;
-
[Standard] No Access to Workshop Files
shadmar replied to gamecreator's topic in Leadwerks Engine Bug Reports
I don't think workshop is suppose work from non-steam edition? -
Postprocess, nice work!
-
Maybe this should be in the bug section.
-
Glow Shader - How to make it blink (fade in and fade out)
shadmar replied to R.E.Z.'s topic in Programming
In the frag: find : vec4 outcolor = ex_color; after add : outcolor.a=1.0; find: fragData2 = vec4(texture(texture5,ex_texcoords0).rgb,materialflags/255.0); replace it with : fragData2 = vec4(texture(texture5,ex_texcoords0).rgb*ex_color.a,materialflags/255.0); Then in your app use : self.entity:SetColor(1,1,1,glowamount) to set glow amount, and now you can make a blinking or fading glow in code.