Jump to content

mdgunn

Members
  • Posts

    626
  • Joined

  • Last visited

Everything posted by mdgunn

  1. This is actually an interesting topic and I bet people have quite a few things they could be mention but I've got nothing coming to mind right now! Sorry!
  2. Great! I would hope it was super accessible so you can highlight a keyword or method in IDE, hit F1 (or whatever), and it will take you to exactly the right place. If you're looking at CHM then probably yes? I personally do still use the CHM files in some software I have and certainly have occasions when I'm cursing a lack of internet for access to online docs. As it seems you are thinking of both online and off then if they can be output from a single source so it's not a nightmare managing it (at least keeping it synched). Here is my approach to finding online documentation in the absence of a good F1 on keyword assistance.... 1) Go to root API web site - should be simple but people (like me?) are stupid and lazy and I'll forget the quickest way in the IDE and drop back to some habitual method to get there instead. a) bring up desktop brower b) click on address bar c) type the FULL url in and do a GOOGLE(!) search d) select either leadwerks main site or API site if you see it. e) find yourself on the wrong page so do several more clicks and end up at the API.... 2) Hit search tab 3) Type your search term 4) Hit Enter 5) Read the results 6) Try to determine which one is probably the right one (sometimes) 7) Click the link 8) Finally read the item Exaggeration of course but to be honest I probably do LITERALLY ALL OF THE TIME Should be 1) Double click method to highlight 2) Hit F1 3) Read 100% correct item for what you were on. I've used other software (similar to leadwerks that worked well this way). Could be some downside? I didn't see any at the time. Nice to see things moving forwards in this area. I suppose we just need to make sure the examples are good as they were before and maybe even more of them with feedback from users (comments etc.). Good stuff.
  3. I've been playing round with particles for some longer session in the editor recently and I am seeing them bunch up after a while of letting them run. I am using a number of emitters together, up to about 5 (as you need to if you want something a bit more convincing or interesting) but with fairly low quantities (e.g. about 10-20 each). The waterfall I was doing ended up with all the water bunching up so it looked like someone was throwing it from a bucket. If I changed the duration (even by 1) then it seems to restart the emitter, 'reseeding' it so the particles a are spread out again. I don't think it's related to multiple emitters or low particles but its more obvious in that situation. I don't think I'm doing anything special. I've seen this before but at the time I think maybe it was just an editor thing but I see it in game as well There could be a reasonable explanation for this relating to the low amount of particles but it seems you should be able to have low numbers and have a way to avoid bunching as well. Bug or known way round this?
  4. You meant you do this? store the current rotation turn the source to point at the target log the rotation compare original rotation to rotation to target turn back to original heading so everthing appears as it was for the screen refresh? If that's what you mean then that is what I ended up recently to do an enemy FOV check, though I suspected that using 'proper' math, vectors and trigonometry may be faster and potentially more useful for me to understand. I stumbled one or two articles I think but I've yet to read through it properly and get a grip of this. I suspect it will all be terribly useful for constructing a 'radar' or in-game dynamic map.
  5. You want to use the methods of the Context object. See here. http://www.leadwerks.com/werkspace/page/api-reference/_/context/ E.g. http://www.leadwerks.com/werkspace/page/api-reference/_/context/contextdrawrect-r724 http://www.leadwerks.com/werkspace/page/api-reference/_/context/contextdrawimage-r721 http://www.leadwerks.com/werkspace/page/api-reference/_/context/contextdrawtext-r731
  6. If you are wanting global water (water everywhere of a SINGLE specific level) then you want the scene water as previously indicated. If you want some local water perhaps at different levels (e.g. various pools) then the cheap water may do it for you. You need to apply the material that is downloaded with the asset to a CSG brush - the primitive objects you build a level with (e.g. a cube), BUT then you need to go into the script tab for that object and set up the cheap water script that came with the material. It is the script that will animate the texture. You might want to play around with the scale of the texture or the speed that the script is animating at to get it how you want. Also I think the cheap water can use environment probes so put a probe in the room/area with the pool and build global illumination (in tools menu I think?) and I think you will get some blurred reflections. You may need to experiment a bit.
  7. Thanks for that. I tried your script and i DO get a button though there are very many differences with current code. I don't have any background image of the map though, just back background. If I comment out the GUI stuff the view of the loaded map returns. I also retried things at home (was on my standard work desktop earlier) and the code that didn't work (at work) works a bit better at ome. I now see text and a tiny dot or square (presumably the button outline). Thanks for helping me get a bit further. I might poke around a bit more and also re-consider going back to FlowGUI for now.
  8. Having problems with my first try at getting the Leadwerks GUI code running for some menus. I got the exact code from this blog post.... http://www.leadwerks.com/werkspace/blog/1/entry-1714-leadwerks-gui/ and tried to run it but I get nothing. Am I missing something, did something change? I'm on the beta branch and I see no errors but I also don't see a button. I realise this is not final release but it looks like others are using it with success so any ideas what I'm doing wrong. Here is the main.lua I created from the blog post code... --Initialize Steamworks (optional) Steamworks:Initialize() --Set the application title title="$PROJECT_TITLE" --Create a window local windowstyle = window.Titlebar + window.Resizable-- + window.Hidden if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end window=Window:Create(title,0,0,System:GetProperty("screenwidth","1024"),System:GetProperty("screenheight","768"),windowstyle) --window:HideMouse() --Create the graphics context context=Context:Create(window) if context==nil then return end --Create a GUI local gui = GUI:Create(context) --Create a new widget local button = Widget:Create(20,20,300,50,gui:GetBase()) --Set the widget's script to make it a button button:SetScript("Scripts/GUI/Button.lua") --Set the button text button:SetText("Button") --Create a world world=World:Create() world:SetLightQuality((System:GetProperty("lightquality","1"))) --Load a map local mapfile = System:GetProperty("map","Maps/start.map") if Map:Load(mapfile)==false then return end --window:Show() while window:KeyDown(Key.Escape)==false do --Process events while EventQueue:Peek() do local event = EventQueue:Wait() if event.id == Event.WidgetAction then if event.source == button then System:Print("The button was pressed!") end end end --If window has been closed, end the program if window:Closed() then break end --Handle map change if changemapname~=nil then --Clear all entities world:Clear() --Load the next map Time:Pause() if Map:Load("Maps/"..changemapname..".map")==false then return end Time:Resume() changemapname = nil end --Update the app timing Time:Update() --Update the world world:Update() --Render the world world:Render() --Render statistics context:SetBlendMode(Blend.Alpha) if DEBUG then context:SetColor(1,0,0,1) context:DrawText("Debug Mode",2,2) context:SetColor(1,1,1,1) context:DrawStats(2,22) context:SetBlendMode(Blend.Solid) else --Toggle statistics on and off if (window:KeyHit(Key.F11)) then showstats = not showstats end if showstats then context:SetColor(1,1,1,1) context:DrawText("FPS: "..Math:Round(Time:UPS()),2,2) end end --Refresh the screen context:Sync(true) end
  9. Thanks for the info. I'll do a few more tests when I get home.
  10. I have something transparent. Z-sort seemed to be the key (thought I'd already tried that). Seems difficult to get something that is only slightly transparent. Maybe this is the way this transparency works, or are you supposed to modify the shader or pass values into it?
  11. Can anyone explain or provide an example of a material using the transparent shader and any key things you need to do or set. Thanks
  12. Thank for the replies. I am thinking that in developing a model I'm going to be refining and re-importing it a number of times. Re-import unfortunately seems to wipe everything you've set up for the model (normal map correction, animation, scale etc.) The text file should help me quickly get the animations set back up at least. Kinda wish that if you're asking to RE-import something it at least gave you the option of re-applying some of the work you did last time and almost certainly don't want to repeat every time. Guess wiping it out is simple and clean. Thanks!
  13. In the model viewer there is an option to import an animation. I think if you have the right format of text file then it can construct the multiple animations from a single track if you tell it which frames to pull out. I can't find the format for this anywhere. Can anyone supply a link to this information, or the information itself for the format of the text file?
  14. Yeah I think I can take a few functions from AI scripts (distance to target etc.) but movement and collisions will need to be my own. Thanks for a confirming voice. Cheers, Michael
  15. I have some simple flying AI enemies that close distance to a player and I've started out just using simple distance checks, turns and moves as I thought that using standard character controller monster AI would not work for flying enemies. Is it right that character controller is not suitable for flying enemies,or should it work if set up or 'faked' right (e.g. some pivot to act as a 'ground foot' or something - fro me it may not be suitable as my enemies descend from high and should pass over obstacles they are currently above)? I'm thinking the character controller is designed for enemies that touch the ground in order to make use of the navigation mesh? Anyone got any feedback on how they went about flying enemies?
  16. Yep staying safe in most areas (sound effects, core software etc.) helps you actually finish something! I like to try to progress with my skills in a particular area too. I plan to use Leadwerks and stay fairly safe with a first person game of some sort. I hope to refine my skills a bit in modular level creation and possibly some simple 3D asset creation. I forgot to mention but there are quite a few people stream their development or blog their progress so you get some good ideas of the tools people use and their workflows which can be interesting.
  17. Ludum Dare 37 starts in 12 hours (as I type this) http://ludumdare.com/compo/ https://ldjam.com/ Most of you probably know (I think), but Ludum Dare is a game dev competition where you have to complete a game in 48 hours from scratch (no externals assets I think). The JAM portion of the event is a bit more relaxed and gives you 72 hours (if my memory serves me right - I really should check the rules) You can use external assets (I think - again I should have checked the rules before posting this right ). In the past I have sometimes participated unofficially and used it as a focus point to force myself to try to do a game in very tight timescale and so be forced to jettison most of the fluff you waste your time with normally. I think I might give the JAM (not the DARE) a go this year but probably just unofficially for my own benefit. Don't necessarily plan to submit anything as currently I already know I will have limited time over this weekend so it just might not happen. I suppose one outcome could be that I come up with the start of a small game I can enter into the Leadwerks Winter Tournament in just 2 days and can then either choose to submit that or continue on with my main idea. It can be a useful event to try out something that you've never got round to before in a bit of software (e.g. Leadwerks) and to refine your workflow. Sometimes there are also offers on software around this time which area usually highlighted on the site though I can't see any information on it at this time As I type this the theme is currently accepting voting still. https://ldjam.com/events/ludum-dare/37/theme Having a theme helps focus your mind but also think of things that might be outside your preferred area (space zombies etc.) If anyone decides to enter, officially or unofficially then good luck.
  18. I will PM GarlicWaffle and see if I have any Steam Keys he wants.
  19. It would be good if there was a delay before it flashed I think......then you could have a long time between short flashes, acting as a sort of visual hint rather than it seeming to be a continuously pulsing object (which may be jarring in a more realistic game). Also I'd move the magic numbers (0.25 and 0.75) to the top and comment them and possibly expose them. It could be handy if the object went 50% brighter and 50% darker say. I actually had a go at modifying it to do all this but got a bit bogged down and didn't complete it in the end. If I do I'll post it.
  20. This time I hope to put together something a bit more complete. I think I will aim for 4 weeks as the 80/20 rule says there will be 80% to do at the 'end'! 2 weeks will help. Nothing concrete started yet.
  21. Here you go. Wasn't really sure how to best package it all up. Put what I could off in a separate addons directory though it relies on parts of FPS hud materials and sounds. Uploaded an EXE build package: https://dl.dropboxusercontent.com/u/67692508/leadwerks/leadwerks_nov_16_challenge/lw_nov_16_jetpack_challenge_exe.zip and the whole project: https://dl.dropboxusercontent.com/u/67692508/leadwerks/leadwerks_nov_16_challenge/lw_nov_16_jetpack_challenge_project.zip Main script is MDG_JP_FPSPlayer.lua Main desktop has some problems so had to do some final bits on my laptop intel graphics which is often a bit weird. You may get massive particles for the jetpack smoke. Enjoyed the challenge I there is a good chance I'll base my Christmas game on the work done here so thanks for setting up the challenge.
  22. I think you lose access but you can download all the textures and rigs before then. I've not checked if the training can be downloaded. Other places usually prevent that but not sure about here.
  23. Blender Cloud 50% Off Cyber Monday Only https://cloud.blender.org/blog/ For about 15 euros (think it was about 12UK pounds) you get 3 months access to Blender Cloud. This gives you access to some decent Blender training videos and some rigged blender characters but also quite a large selection of good quality textures which from what I could gather are CC-0 licensed (no credit even required). I could be wrong on that but whenever they mention textures they seem to say CC-0 along with it though it's not actually on the individual items. Many textures have multiple maps. Some up to about 5 or 6 (displacement, normal etc). I thought this was a great deal and help support Blender make films which directly pushes forwards the Blender tech as they use the money to develop tools to more easily make their current film. I joined straight away when I saw this, but then I'd thought about it a few times in order to access the training and assets.
  24. A pure VS2015 template solution is acknowledged as being on the road-map of tasks. Hopefully Josh will see there is another new user looking for this feature and evaluate this in light of existing priorities. I'm fairly sure he sees most posts in the forums here, or you could always PM him.
  25. I think it's a good idea. May be best if the theme is quite general so that people can find a suitable solution that they are capable of coding and also to come up with some imaginative and varied items. This way there may be several workshop worthy items that are different, rather than just ending up with trying to judge the best in a narrow field . 'Best' may be hard to judge. It would be good that people aim to produce a good quality item for the workshop and this is born in mind by the participants. However at the same time producing anything of any quality by anyone is also better than nothing and much can be learnt by the creator and also others involved just by participating. Perhaps some sort of review at the end as Josh does might be good to point out good aspects of different items (thus there doesn't have to be a best). Or the submitter is encouraged to say a line or 2 on submission and these can be used as the text in some sort of summary forum post so forum searches have some change of picking up these items.
×
×
  • Create New...