Jump to content
The Dark Mod Forums

Recommended Posts

Posted
You've said that each visportal belonging to the visleaf the player is currently in and which is in his field of view is automatically open. This is not exact. The visportal is only open if the side of the current visleaf is facing the player.

 

 

Could you explain that one further? I'm not quite sure what you mean.

Posted

 

Could you explain that one further? I'm not quite sure what you mean.

I'll try. Each visportal actually has two sides, each facing into one of the both visleafs the visportal is connecting. I've created an example setup.

post-11230-0-74763800-1498675922_thumb.jpg

The green line is the visportal, connecting the visleafs #1 and #2 (marked in different colours). The player is in the first visleaf. The green arrow illustrates the normal vector of the visportal facing into visleaf #1. The one towards the other visleaf points exactly into the opposite direction, but that is not important here. If the player stands at position A, he is staring directly at the side of the visportal facing the visleaf he is currently in, causing it to be open.

post-11230-0-25832100-1498676169_thumb.jpg

If the player stands at position B, he is still staring at the visportal, but this time at the side that is facing into the other visleaf. In this case the visportal stays closed.

post-11230-0-24797600-1498676567_thumb.jpg

 

Regarding the math. I didn't look it up in the code but if you have the normal vectors of the visportals facing into your current visleaf, you can find out which situation is the case by checking whether the angle of the players viewing direction and the visportal normal exceeds then 90 degrees. Only in that case it should be open. This is the same math the trigger look script uses, which I'd explained I while ago.

  • Like 3

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Posted (edited)

Getting "webpage not found" when clicking on link to prefabs download. Link incorrectly points to "prefab" but it should be "prefabs"

Mike

Edited by marcuskiwi
Posted

There is a 's' missing after prefab, a typo in the link.

 

So it is: http://www.mindplaces.com/save/prefabs.zip

 

@Springs: On my end there are black bars around the video, so it isn't using the full size of the screen. If the video looks like this is there a way to get rid of it?

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Posted (edited)

A few things I noticed, while watching: for resizing brushes, you keep saying to right-click next to the brush. This should be a left click. Regarding navigation in camera view: When you have clicked the right mouse button and are able to look around, you can also use the arrow keys on your keyboard to navigate. This also allows you to strave right and left and has a more fluent movement forward and backward than the mouse wheel. Finally: For a German keyboard the console is called not with ctrl+alt+tilde, but ctrl+alt+circumflex (in each case it should be the key left of the number "1" key).

 

Edit: I forgot to write this earlier: The entities being sorted by pk4 is only true for AI. It is something that I have observed before. However, I am not sure, what causes this. It did not bother me enough to report it though...

Alos, I have added the video to the tutorials list on the Wiki.

Edited by Destined
Posted

There is a 's' missing after prefab, a typo in the link.

 

So it is: http://www.mindplaces.com/save/prefabs.zip

 

I added an "s" last night, but I see that only updated the text, not the actual link. Fixed now.

 

@Springs: On my end there are black bars around the video, so it isn't using the full size of the screen. If the video looks like this is there a way to get rid of it?

 

I've tried to figure out why that's happening. It didn't for any of the other video series I've done and as far as I know I'm not doing anything differently.

 

Oh, I see the display ratio was somehow changed during import.

 

A few things I noticed, while watching: for resizing brushes, you keep saying to right-click next to the brush. This should be a left click.

 

Thanks for mentioning that; I will re-upload after fixing that issue.

Posted

I've tried to figure out why that's happening. It didn't for any of the other video series I've done and as far as I know I'm not doing anything differently.

 

Oh, I see the display ratio was somehow changed during import.

YT will do this if you dont upload videos files in one excepted excepted aspect ratios -

 

- https://support.google.com/youtube/answer/6375112?hl=en-GB

 

But found a workaround -

 

-

  • Like 1
Posted (edited)

I have a problem following your Lesson 3 in that I have no mapper_tools group in my prefabs that I downloaded??? HELP

Edited by marcuskiwi
Posted

This sounds like DR is not set up correctly and thus cannot find the textures. Does your Engine path (when selecting File->Select Game...) point to your "The Dark Mod" folder (where the "TheDarkMod.exe" and all the pk4 files are stored)? The path to fms/"Yourmap" goes in the line "Mod (fs_game)".

Posted

I have a problem following your Lesson 3 in that I have no mapper_tools group in my prefabs that I downloaded??? HELP

 

Make sure you've followed these steps:

 

1. Download the prefabs.zip file.

2. Extract it into your main "darkmod" folder.

3. Set the "Engine Path" in Dark Radiant to your "darkmod" folder path.

 

All I see when I import prefabs is this:

 

 

Make sure you are using the most current version of TDM, and that your Engine Path in DR is set correctly, as Destined mentioned.

 

Let me know if this doesn't fix the problems.

Posted

Hey Spring, which version of DR you are using? I'm using DR 2.2.1 on Linux and there is no "Window Layout" entry in the view menu. It should be there, shouldn't it?

 

There's a bug in the Linux version of 2.2.1, some menu items are missing, and things like the most-recently-used map file list gets borked after use.

I've fixed this in most recent Git though.

 

It's possible to assign a key combination to the command changing the Window Layout, look for "ActivateLayoutEmbedded" in the Edit > Keyboard shortcuts dialog.

Posted

 

There's a bug in the Linux version of 2.2.1, some menu items are missing, and things like the most-recently-used map file list gets borked after use.

I've fixed this in most recent Git though.

 

It's possible to assign a key combination to the command changing the Window Layout, look for "ActivateLayoutEmbedded" in the Edit > Keyboard shortcuts dialog.

 

Thanks for the tip greebo! I didn't know there were keyboard shortcuts to change the window layout.

I also assigned a hotkey to the readable editor, whose menu entry is also missing.

Posted

As someone who has never tried a 3D graphics program before I have to follow the video step by step and its ok saying use something else but why should I have to ask for help when the prefab should be there in the first place if that is what the video says to use!!!

 

If I am expected to find my own way around then I might just as well give it away now before I get too deep into it.

Posted

That's why I posted the alternative: so you can further follow the video. I cannot talk for Springheel, but he may just have forgotten to include this prefab into the zip-file he provided. Don't be discouraged by minor bumps. The videos so far have been a very good introduction (at least in my opinion), but Springheel is still just human, so some mistakes are bound to happen. If you find a problem or a mistake, just post it here and we will find a solution (after all, this is what the forum is for).

And without wanting to discourage you: I am quite sure you will spend quite some time finding your way around, looking for models, prefabs and entities you want to use, until you have a feeling about where to find them. I know time is precious, but you will have to invest some, if you want to create a map.

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • Ansome

      While updating my first FM, I noticed a lot of silly things I did because I was still new to DR. For example, there was a model for a wheel that I wanted the player to be able to turn that had its origin off-center. I didn't know I could just re-export the model inside DR to fix its origin, so instead that wheel triggers a func_mover it's bound to. A silly solution in retrospect, has anyone else made somewhat janky or roundabout solutions to technical challenges in their maps? I'd love to hear about 'em!
      · 5 replies
    • datiswous

      If you use DarkRadiant in Linux while using a dark theme, a large amount of the icons are hard to see, because it's dark-color on dark background (wish DR darkmode was a little less dark). A workaround is switching to a light theme when using DR. I'm using XFCE as DE, so I made this script (mostly copied from this code), which works as a toggle. Then I set it to a keyboard shortcut. The switch works even when DR is already opened.
      current_theme=$(xfconf-query -c xfwm4 -p /general/theme) if [[ $current_theme == 'Adwaita-dark' ]]; then xfconf-query -c xsettings -p /Net/ThemeName -s 'Mint-X-Grey' xfconf-query -c xfwm4 -p /general/theme -s 'Mint-X-Grey' else xfconf-query -c xsettings -p /Net/ThemeName -s 'Adwaita-dark' xfconf-query -c xfwm4 -p /general/theme -s 'Adwaita-dark' fi This only works for the XFCE DE though.
      · 0 replies
    • datiswous

      I just bought/build a new pc, so probably less performance related whining from my part from now on..
      Sorry in advance!
      Here are the specs
      · 4 replies
    • jivo

      In case you missed it, I updated the Visible Player Hands mod to version 2.0. It now works while a weapon is selected and has a Linux version too.
      Check it out if you're interested: Visible Player Hands 2.0
      · 0 replies
    • thebigh

      Starting a playthrough of the whole Dark Mod, from oldest mission to newest. I've knocked over the first few already and about to start Living Expenses. Only ~170 missions to go!
      · 12 replies
×
×
  • Create New...