标签: atlas

使用纹理图集时HLSL颜色出血

我正在用C#/ XNA制作游戏.我正在研究我将用于地形的着色器.我正在使用纹理图集来提高速度和效率,但我在瓷砖之间遇到纹理/颜色渗色:http: //i.imgur.com/lZcESsn.png

我在FX Composer和我的游戏中都得到了这个效果.这是我的着色器:

//-----------------------------------------------------------------------------
// InstancedModel.fx
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------


// Camera settings.
float4x4 World : World < string UIWidget="None"; >;
float4x4 View : View < string UIWidget="None"; >;
float4x4 Projection : Projection < string UIWidget="None"; >;

// This sampler uses a simple Lambert lighting model.
float3 LightDirection = normalize(float3(-1, -1, -1));
float3 DiffuseLight = 1.25;
float3 AmbientLight = 0.25;

float TextureSide = 0; …
Run Code Online (Sandbox Code Playgroud)

shader textures hlsl atlas

3
推荐指数
1
解决办法
1861
查看次数

安装BLAS/ATLAS/MKL/OPENBLAS会加速用C/C++编写的R包吗?

我发现使用BLAS/ATLAS/MKL/OPENBLAS之一将提高R的速度.但是,它是否仍然会改进用C或C++编写的R包?例如,R包Glmnet在FORTRAN中实现,R包rpart在C++中实现.它只是安装BLAS/...等会改善执行时间吗?或者我们是否必须重建(构建新的C代码)基于BLAS/...等的包?

r blas atlas intel-mkl openblas

3
推荐指数
1
解决办法
1793
查看次数

千分尺(micrometerClock)中的错误处理条件

我正在尝试使用 Atlas 配置 Micrometer。我正在遵循 Micrometer 和 Spring 提供的指南(我使用的是 Spring Boot 2.0.1),但我不明白出了什么问题。

我有以下配置:

public class AtlasMeterConfiguration {

@Bean
MeterRegistry meterRegistry() {
    AtlasConfig atlasConfig = new AtlasConfig() {
        @Override
        public Duration step() {
            return Duration.ofSeconds(10);
        }

        @Override
        public String get(String k) {
            return null; // accept the rest of the defaults
        }
    };

    try(CompositeMeterRegistry compositeRegistry = new CompositeMeterRegistry();
        SimpleMeterRegistry oneSimpleMeter = new SimpleMeterRegistry()) {

        AtlasMeterRegistry atlasMeterRegistry = new AtlasMeterRegistry(atlasConfig, Clock.SYSTEM);
        compositeRegistry.add(oneSimpleMeter);
        compositeRegistry.add(atlasMeterRegistry);

        return atlasMeterRegistry;
    }
}
Run Code Online (Sandbox Code Playgroud)

}

我将它添加到我的一个 REST 控制器中:

registry.timer("my.latency", "input").record(() …
Run Code Online (Sandbox Code Playgroud)

java spring atlas micrometer

3
推荐指数
1
解决办法
3152
查看次数

无法在Mongo Explorer中添加服务器(Atlas群集)

如何从Mongo Explorer添加并连接到此Atlas集群?:

mongo "mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl -u m121 -p aggregations --norc
Run Code Online (Sandbox Code Playgroud)

PS:我需要从Mongo Explorer(用于IntelliJ IDEA的插件)而不是从Shell 添加并运行它。

github.com/dboissier/mongo4idea

explorer cluster-computing mongodb atlas

3
推荐指数
1
解决办法
835
查看次数

C C++链接错误

我正在用C++编写一个使用CLAPACK ATLAS库的程序.但是,我无法让程序成功链接到库.我写了一个小C程序来更好地演示这个问题.有趣的是,如果我用GCC编译它,这个小的演示程序链接就好了,但是当我尝试用G ++编译时,我得到了相同的链接器错误.我希望有人可以帮我弄清楚G ++和GCC究竟在做什么,以便将原始程序链接起来(原始程序是一个C++程序,我不能只是"使用GCC")

这是一个小型演示程序:

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <cblas.h>
#include <clapack.h>

// a is a column-major array of all the values in the matrix to invert
// The matrix's height and width are the same because it is a square matrix.
void invertMatrix(float *a, unsigned int height)
{
    int info, ipiv[height];
    info = clapack_sgetrf(CblasColMajor, height, height, a, height, ipiv);
    info = clapack_sgetri(CblasColMajor, height, a, height, ipiv);
}

void displayMatrix(float *a, unsigned int height, unsigned int width) …
Run Code Online (Sandbox Code Playgroud)

gcc g++ lapack atlas

2
推荐指数
1
解决办法
4349
查看次数

卡布奇诺(目标-j)/阿特拉斯是如何将相对和绝对定位排除在外?

我最近一直在查看卡布奇诺和阿特拉斯,他们似乎已经将相对和绝对的定位抽象为"有效"的东西.我想知道那些熟悉这个项目的人 - 他们是怎么做到的?

我一直认为相对和绝对定位是一种思考定位元素的模糊方式,所以我对此非常好奇.

我可以查看的任何帮助或资源都很棒!

abstraction cappuccino positioning atlas

2
推荐指数
1
解决办法
292
查看次数

ATLAS的未定义引用

我试图在我的项目中使用ATLAS,但我无法将最简单的代码链接到它:

#include <stdio.h>
#include <cblas.h>

void ATL_buildinfo(void);

int main() {
    ATL_buildinfo();
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

我正在编译:

gcc -I/home/caian/ATLAS/include/ \
  -I/home/caian/ATLAS/ARCH/include/ \
  -L/home/caian/ATLAS/ARCH/lib/ \
  -latlas main.c -o test
Run Code Online (Sandbox Code Playgroud)

我仔细检查了ATL_buildinfo原型和libatlas.a,nm显示ATL_buildinfo存在.

可能是什么问题呢?

linker gcc atlas

2
推荐指数
1
解决办法
468
查看次数

在Ubuntu中安装scikit-learn时有​​些麻烦

我只是从https://pypi.python.org/pypi/scikit-learn/下载scikit-learn安装包.
在安装软件包之前,我使用apt-get安装了几个依赖软件包:

sudo apt-get install build-essential python-dev python-numpy python-setuptools python-scipy libatlas-dev
Run Code Online (Sandbox Code Playgroud)

在我转到安装目录后,我运行命令python setup.py install.但收到回复error: could not create '/usr/local/lib/python2.7/dist-packages/sklearn': Permission denied

我发现问题是关于ATLAS和BLAS,但我不熟悉它们.所以我需要一些帮助来解决它.我将详细信息粘贴在终端中:

Appending sklearn.__check_build configuration to sklearn
Ignoring attempt to set 'name' (from 'sklearn' to 'sklearn.__check_build')
Warning: Assuming default configuration (svm/tests/{setup_tests,setup}.py was not found)Appending sklearn.svm.tests configuration to sklearn.svm
Ignoring attempt to set 'name' (from 'sklearn.svm' to 'sklearn.svm.tests')
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:1423: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg …
Run Code Online (Sandbox Code Playgroud)

python ubuntu blas atlas scikit-learn

0
推荐指数
1
解决办法
1万
查看次数